jhu-lcsr-forks / rtt_ros_integration

Orocos-ROS integration libraries and tools
1 stars 2 forks source link

Adding ROS namespace manipulation operations #59

Closed jbohren closed 4 years ago

jbohren commented 9 years ago

This aims to resolve issues mentioned in https://github.com/orocos/rtt_ros_integration/issues/35

This allows us to do the following (in ops for example):

ros.setNS("/controllers/left")
// call function which creates other components
// all ROS names will be scoped to "/controllers/left"

ros.setNS("/controllers/right")
// call same function which creates other components
// all ROS names will be scoped to "/controllers/right"

ros.resetNS()

Or, if you have multiple deployers, you could run this code in each of them, without having ROS namespace collisions (unless you do something with an absolute namespace):

ros.pushNS("deployer_1")
// create a bunch of components
// all ROS names will be scoped to "deployer_1"
ros.popNS()

@smits @meyerj @konradb3 @cpaxton What do you guys think?


This change is Reviewable

ahoarau commented 8 years ago

@meyerj To my opinion, this would be a very useful addition to rtt_ros.

meyerj commented 4 years ago

Re-opened as https://github.com/orocos/rtt_ros_integration/pull/141.