0
$\begingroup$

Rosanswers logo

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.


Originally posted by fnax8902 on ROS Answers with karma: 7 on 2021-11-28

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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 |.


Originally posted by ticotico with karma: 212 on 2021-11-28

This answer was ACCEPTED on the original site

Post score: 2

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.