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: 295 times
Last updated: Jan 20 '14
Node to NOde synchronous communication using Publisher Subscriber Architecture
Can a single node act as publisher and subscriber alternativelye
How to subscribe to a topic at will/on demand?
Turning lights On and Off on Gazebo with ROS
how to put subscriber and publisher in one cpp file ?
Subscriber node not working for topic at 50Hz
Subscribing to a non-existing topic