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

Revision history [back]

click to hide/show revision 1
initial version

Please see #q230737. This is most likely very closely related, if not a duplicate of that question.

Please see #q230737. This is most likely very closely related, if not a duplicate of that question.

sub = robotics.ros.Subscriber(node,'/chatter','std_msgs/String')"

To use this, I have to insert the node name of the talker, which is not know.

this is just one of the possible ways to initialise a Subscriber object. The documentation has a few more that don't require you to know the name of the publisher.