ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Reffer to https://answers.ros.org/question/107326/publishersubscriber-in-one-python-script/.
I think this will help you.