Python node with more than one publisher/subscriber
Is it possible to make a ros python node that has more than one subscriber and more than one publisher? Are there examples of this?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Is it possible to make a ros python node that has more than one subscriber and more than one publisher? Are there examples of this?
Yes.
I'm not aware of any good examples offhand, but the basic principle is that you simply instantiate multiple copies of the publisher and subscriber objects.
(I also believe that this question has been asked and answered before)
Asked: 2014-01-20 07:48:22 -0500
Seen: 287 times
Last updated: Jan 20 '14
Subscribe in MATLAB to a ROS node on another PC
Subscribing and publishing in the same node
subscribe and publish in the same class
Subscribing to multiple data on one topic
Running ROS across multiple machines [closed]
Should I unregister from Publishers/Subscribers when I terminate a ROS node by exiting the script?