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

ros2 bag record Regex

asked 2021-11-28 12:06:11 -0500

fnax8902 gravatar image

Hello, I'm trying to record certain topics using ros2 bag record -a. The topics have different namespaces: /uuid21, /uuid22 and /uuid23. How do I select one namespace? Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-11-28 13:51:37 -0500

ticotico gravatar image

updated 2021-11-28 13:53:58 -0500

Hi, I typically use a launch file with the following:

<node pkg="rosbag" type="record" name="rosbag_record_sensors" output="screen"
      args="--buffsize=0 
            -e '(.*)you_want_this(.*)|(.*)and_this(.*)'
            -x '(.*)you_dont_want_this(.*)|(.*)neither_that(.*)'"/>

Separation is done using |.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2021-11-28 12:06:11 -0500

Seen: 605 times

Last updated: Nov 28 '21