"""This is the SMIA launch file, which executes the program logic from the command and gets the AAS model by the providedPython methods."""importloggingimportsmiafromsmia.agents.extensible_smia_agentimportExtensibleSMIAAgentfromsmia.agents.smia_agentimportSMIAAgentfromsmia.assetconnection.asset_connectionimportAssetConnection_logger=logging.getLogger(__name__)
[docs]defmain():# First, the initial configuration must be executedsmia.initial_self_configuration()_logger.info("Initializing SMIA software...")# Then, the AASX model is added# smia.load_aas_model('../examples/SMIA_Operator_article.aasx')smia.load_aas_model('../examples/SMIA_TransportRobot_article_1.aasx')# smia.load_aas_model('../examples/SMIA_TransportRobot_without_OWL.aasx')# smia.load_aas_model('../examples/SMIA_tutorial_1.aasx')# smia.load_aas_model('../smia_archive/config/SMIA_TransportRobot_with_OWL.aasx')# Create the agent objectsmia_agent=SMIAAgent("gcis2@xmpp.jp","gcis1234")# smia_agent = SMIAAgent()# smia_agent = ExtensibleSMIAAgent()# smia_agent.add_new_agent_service('newSvc', nuevo_svc_params)smia.run(smia_agent)
if__name__=='__main__':# Run main program with SMIAmain()