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

Revision history [back]

Just for your attention - you can try to use rosbag2 to record this kind of things. No need to reinvent the wheel (but if you want, go on! it's a nice way to learn, of course :) )

https://docs.ros.org/en/galactic/Tutorials/Ros2bag/Recording-A-Bag-From-Your-Own-Node-Python.html

Just for your attention - you can try to use rosbag2 to record this kind of things. No need to reinvent the wheel (but if you want, go on! it's a nice way to learn, of course :) )

https://docs.ros.org/en/galactic/Tutorials/Ros2bag/Recording-A-Bag-From-Your-Own-Node-Python.htmlhttps://docs.ros.org/en/foxy/Tutorials/Ros2bag/Recording-A-Bag-From-Your-Own-Node.html

Just for your attention - you can try to use rosbag2 to record this kind of things. No need to reinvent the wheel (but if you want, go on! it's a nice way to learn, of course :) )

  • https://docs.ros.org/en/foxy/Tutorials/Ros2bag/Recording-And-Playing-Back-Data.html
  • https://docs.ros.org/en/foxy/Tutorials/Ros2bag/Recording-A-Bag-From-Your-Own-Node.html

Just for your attention - you can try to use rosbag2 to record this kind of things. No need to reinvent the wheel (but if you want, go on! it's a nice way to learn, of course :) )

  • 1) https://docs.ros.org/en/foxy/Tutorials/Ros2bag/Recording-And-Playing-Back-Data.html
  • 2) https://docs.ros.org/en/foxy/Tutorials/Ros2bag/Recording-A-Bag-From-Your-Own-Node.html

Your code should be fine, are you sure you have messages on this topic? Maybe the name? There are a lot of / there.