question about ros2 bag play
I am tried to use ros2 bag record to save the information of camera topic, but how to use ros2 bag play to loop play the package.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
I am tried to use ros2 bag record to save the information of camera topic, but how to use ros2 bag play to loop play the package.
In ROS1 you could loop play using the -l
command.
However, it appears that this has not been implemented yet in ROS2.
You can follow the development of rosbag for ROS2 here https://github.com/ros2/rosbag2
The option has been implemented in April 2020 (https://github.com/ros2/rosbag2/commi...)
Use the -l (or --loop) option:
ros2 bag play <bagfile.db3> --loop
I simply use loop in batch file:
FOR /L %%A IN (1,1,10) DO (
ECHO %%A
ros2 bag play <path to rosbag>
)
Asked: 2019-07-16 21:40:46 -0500
Seen: 3,338 times
Last updated: Nov 19 '20
simulation with bag play data get different results
ROS2 Bag - DB3 CDR Deserialization
how to organize data transfer between nodes on multiple PCs on ROS2
AMCL cannot publish a pose or update the transform. Please set the initial pose...
ROS2 Foxy composable node: Failed to load component due to undefined symbol
Nav2 lifecycle nodes don't autostart
ros2 run .. --ros-args is not working
Using Occupancy Grids with ROS 2: frame problem and probability map