ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Multiple node-ID assignation

asked 2013-05-28 07:43:30 -0600

mateo_7_7 gravatar image

updated 2014-01-28 17:16:41 -0600

ngrennan gravatar image

I'm a neophyte of ROS programming: i need to use the same ROS-node for multiple independent agents; in other words i want to automatically replicate a node (during the launching), each one with its own ID. In addition i'd like to use this ID in each node in such a way that i can define a topic for each agent (node) using a string and an integer (ID) variable. can someone help me? thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-27 17:55:52 -0600

tfoote gravatar image

You can set the node name as a parameter when you run it. And you can use a local topic name, which will be relative to the node name.

http://wiki.ros.org/Names

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-28 07:43:30 -0600

Seen: 348 times

Last updated: Jul 27 '16