Identity of message publisher
How to find out who published a message (node name), especially for the topic tf, where many nodes are publishing different transforms.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
How to find out who published a message (node name), especially for the topic tf, where many nodes are publishing different transforms.
By using the MessageEvent callback signature you can use the getPublisher()
function to retrieve the publisher name (in roscpp). The same appears to be possible in rospy by using Connection Information.
If you play back bags, rosbag effectively is the publisher. I think the connection header approach will therefore not work with rosbag. I'm not sure there is a way to recover the publisher id when playing back bagfiles (I guess not).
Asked: 2015-08-19 06:44:51 -0500
Seen: 667 times
Last updated: Aug 19 '15
Running ROS across multiple machines [closed]
Should I unregister from Publishers/Subscribers when I terminate a ROS node by exiting the script?
Time performance was dropped by transmission period.
tf broadcasting and listening in the same node
How to change publishing rate of a node to a topic? [closed]
What's the difference between getEulerYPR, getEulerZYX and getRPY?
publishing float values in rosserial
How to migrate tf data types such as Quaternion, Vector3, Transform to tf2?