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

Revision history [back]

click to hide/show revision 1
initial version

To sum this up, it looks like this feature is simply not jet implemented and there is at least no obvious generic way in ROS2 of achieving this.

You can follow up the corresponding issue on the rosbag2 repo.

If you find a suitable workaround feel free to add another answer.

To sum this up, it looks like this feature is simply not jet yet implemented and there is at least no obvious generic way in ROS2 of achieving this.

You can follow up the corresponding issue on the rosbag2 repo.

If you find a suitable workaround feel free to add another answer.

To sum this up, it looks like this feature is simply not yet implemented and there is at least no obvious generic way in ROS2 of achieving this.

You can follow up the corresponding issue on the rosbag2 repo.

If you find a suitable workaround feel free to add another answer.


UPDATE:
In the meantime the feature was added and is available for galactic with rosbag -e and -x option. For older distributions you might want to consider the workaround provided by @gilaadb

-e REGEX, --regex REGEX  
                  recording only topics matching provided regularexpression  
-x EXCLUDE, --exclude EXCLUDE  
                      exclude topics matching provided regular expression.  
                      Works with -a and -e, subtracting excluded topics