Skip to content

Commit

Permalink
fix cannot reference parameter in a system
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-rwu authored and ipa-nhg committed Sep 4, 2023
1 parent 0e2d7d8 commit 92f4ace
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import ros.ServiceClient
import ros.ActionServer
import ros.ActionClient
import ros.NamespacedElement
import ros.Parameter

class RosQNP extends DefaultDeclarativeQualifiedNameProvider{

Expand Down Expand Up @@ -76,6 +77,12 @@ class RosQNP extends DefaultDeclarativeQualifiedNameProvider{
return getConverter().toQualifiedName(art.name + "::" + interface.name);
}

if (obj instanceof Parameter) {
val interface = obj as Parameter
val art = obj.eContainer.eContainer as Artifact
return getConverter().toQualifiedName(art.name + "::" + interface.name);
}

return super.qualifiedName(obj);
}
}

0 comments on commit 92f4ace

Please sign in to comment.