ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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"
            -e '(.*)you_want_this(.*)|(.*)and_this(.*)'
            -x '(.*)you_dont_want_this(.*)|(.*)neither_that(.*)'"/>

Separation is done using |.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 142 times

Last updated: Nov 28 '21