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

Revision history [back]

How about looking at the _connection_header caller_id http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers?

It says 'We do not recommend using callerid information beyond debugging purposes, as it can lead to brittle code in an anonymous publish/subscribe architecture.'- but it seems like you could reliably get the name of your own node.

How about looking at the _connection_header caller_id http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers? http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers ?

It says 'We do not recommend using callerid information beyond debugging purposes, as it can lead to brittle code in an anonymous publish/subscribe architecture.'- but it seems like you could reliably get the name of your own node.

How about looking at the _connection_header caller_idcallerid http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers ?

It says 'We do not recommend using callerid information beyond debugging purposes, as it can lead to brittle code in an anonymous publish/subscribe architecture.'- but it seems like you could reliably get the name of your own node.

How about looking at the _connection_header callerid http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers Publishers and Subscribers ?

It says 'We do not recommend using callerid information beyond debugging purposes, as it can lead to brittle code in an anonymous publish/subscribe architecture.'- but it seems like you could reliably get the name of your own node.

How about looking at the _connection_header callerid Publishers [Publishers and Subscribers Subscribers] shown in (http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers#Connection_Information) ?

It says 'We do not recommend using callerid information beyond debugging purposes, as it can lead to brittle code in an anonymous publish/subscribe architecture.'- but it seems like you could reliably get the name of your own node.

How about looking at the _connection_header callerid [Publishers and Subscribers] shown in (http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers#Connection_Information) ?

It says 'We do not recommend using callerid information beyond debugging purposes, as it can lead to brittle code in an anonymous publish/subscribe architecture.'- but it seems like you could reliably get the name of your own node- I did a check and rospy.get_name() and callerid do match up when publishing and subscribing to the same topic in the same node.