Skip to content

Commit

Permalink
Merge pull request #217 from ipa-rwu/rwu/fix/ref_parameter
Browse files Browse the repository at this point in the history
fix cannot reference to parameter in rossystem
  • Loading branch information
ipa-nhg authored Mar 20, 2024
2 parents 9b2aa21 + 633a688 commit 2ae68bc
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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{

Expand All @@ -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);
}
}

}

0 comments on commit 2ae68bc

Please sign in to comment.