ros / ros_tutorials

Code used in tutorials found on ROS wiki
http://wiki.ros.org/ros_tutorials
787 stars 537 forks source link

Print out the correct node name on startup. #122

Closed clalancette closed 3 years ago

clalancette commented 3 years ago

Previously, this code was calling 'get_node_names()' and just choosing the first out of the list. But that could be literally anything if there are other nodes running in the network. Instead, call 'get_fully_qualified_name()' instead to get the name of this node.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

clalancette commented 3 years ago

CI: