Skip to content

Commit 57b316c

Browse files
committed
Fix regex option in rosbag2 command for topic exclusion
1 parent cfe4ec7 commit 57b316c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

launch/real.launch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,14 @@ def generate_launch_description():
184184
r'|/servicestate(activate)?|/slam_info|/sportmodestate'
185185
r'|/utlidar/range_info|/videohub/inner'
186186
r'|/webrtc(req|res)|/wirelesscontroller)'
187+
r'|/controller_manager/introspection_data/full'
188+
r'|/controller_manager/statistics/full'
187189
)
188190

189191
rosbag2 = ExecuteProcess(
190192
cmd=[
191193
'ros2', 'bag', 'record', '-s', 'mcap', '-a', # record all topics
192-
'--exclude', exclude_regex, # skip those that match the regex
194+
'--exclude-regex', exclude_regex, # skip those that match the regex
193195
],
194196
output='screen',
195197
)

0 commit comments

Comments
 (0)