rosbag publish messages outside ros environment melodic
I want to publish the messages in my rosbag to outside python using rosbridge. can anyone help?
Thank you.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
I want to publish the messages in my rosbag to outside python using rosbridge. can anyone help?
Thank you.
Asked: 2020-06-07 08:28:35 -0500
Seen: 241 times
Last updated: Jun 07 '20
AttributeError's when running Python scripts
ROS Melodic OpenCV xfeatures2d
ROS TCP Connector C# Lost Publishers & Freezing
Controlling a quadcopter in Gazebo
error getMD5Sum in customized message type
URDF model using the a variable parameter
Unmet dependencies: python-catkin-pkg : Conflicts: catkin but 0.7.8-1 is to be installed
Where exactly do you have problems? Check the rosbridge. There is also the roslibpy library that eases the usage from the python side. This should be all you need. In short:
If you've checked those pages and still have problems, please add more details about your issues.
how to subscribe the topics via rosbridge? can you help? I am new to ros
please add more details. What do you want to do exactly (i.e. what subscribes to what)? What have you tried? What resources did you check? what did work and what does not?
did you serach around ROS answers? E.g. #q334898 might give some pointers
So far I have been able to launch a rosbridge through the web socket. on my python side I have connected to this. Now I want to play a rosbag on ros side and subscribe to the messages from python side outside ros. I am unable to find resources on subscribing to topics outside ros environment. should I use roslibpy.Topic()? I do not know.
https://roslibpy.readthedocs.io/en/la...
one more question I had was that on my python side, it keeps getting disconnected. I have to restart my system to make it work. Have you come across such an issue? Timeout- error raise Exception('Failed to connect to ROS')
Exception: Failed to connect to ROS