From ffee6c26db0e3cd718de78c8110e8e56eea9bc31 Mon Sep 17 00:00:00 2001 From: ipa-nhg Date: Wed, 28 Feb 2024 08:45:32 +0100 Subject: [PATCH] Add the github repository to the model, it depends on https://github.com/ipa320/ros2model/pull/53 --- ros_code_analysis/ros_code_analysis/ros_model_extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros_code_analysis/ros_code_analysis/ros_model_extractor.py b/ros_code_analysis/ros_code_analysis/ros_model_extractor.py index 6d83f89..22f83be 100755 --- a/ros_code_analysis/ros_code_analysis/ros_model_extractor.py +++ b/ros_code_analysis/ros_code_analysis/ros_model_extractor.py @@ -147,7 +147,7 @@ def extract_node(self, name, node_name, pkg_name, ns, ws, rossystem): print(error) RosModel_node=RosModelMetamodel.Node(name=graph_name) RosModel_artifact=RosModelMetamodel.Artifact(name=node_name, node=[RosModel_node]) - RosModel_package=RosModelMetamodel.Package(name=self.args.package_name, artifact=[RosModel_artifact]) + RosModel_package=RosModelMetamodel.Package(name=self.args.package_name, artifact=[RosModel_artifact],fromGitRepo=str(self.args.repo)) #Model file generator node_generator = ComponentGenerator() node_generator.generate_a_file(