From 633a6881ac5243d1f11b8b261c388994b7c89f08 Mon Sep 17 00:00:00 2001 From: Ruichao Wu Date: Wed, 20 Mar 2024 13:47:03 +0100 Subject: [PATCH] fix cannot reference to parameter in rossystem --- .../de/fraunhofer/ipa/rossystem/RosSystemQNP.xtend | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/de.fraunhofer.ipa.rossystem.xtext/src/de/fraunhofer/ipa/rossystem/RosSystemQNP.xtend b/plugins/de.fraunhofer.ipa.rossystem.xtext/src/de/fraunhofer/ipa/rossystem/RosSystemQNP.xtend index b54da243..f5cbfece 100644 --- a/plugins/de.fraunhofer.ipa.rossystem.xtext/src/de/fraunhofer/ipa/rossystem/RosSystemQNP.xtend +++ b/plugins/de.fraunhofer.ipa.rossystem.xtext/src/de/fraunhofer/ipa/rossystem/RosSystemQNP.xtend @@ -6,6 +6,8 @@ import system.RosNode; import org.eclipse.emf.ecore.EObject import system.Rossystem import system.System +import ros.Parameter +import system.RosParameter class RosSystemQNP extends DefaultDeclarativeQualifiedNameProvider{ @@ -28,7 +30,14 @@ class RosSystemQNP extends DefaultDeclarativeQualifiedNameProvider{ val sys_name = obj.name return getConverter().toQualifiedName(sys_name); } - + if (obj instanceof Parameter) { + val param_name = obj.name + return getConverter().toQualifiedName(param_name); + } + if (obj instanceof RosParameter) { + val param_name = obj.name + return getConverter().toQualifiedName(param_name); + } } }