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

publish only some topics of a rosbag file (Command line or launch file)

asked 2012-09-11 05:07:58 -0500

cduguet gravatar image

Hi! I am using rosbag play in a launch file, and one of the recorded topics is processed data from the other topics. As I want to produce again, I would like to play all topics except that one.

I know I should have given it an anonymous name or I can play it in a namespace. But I would like just not to have that topic playing.



edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-09-11 05:48:44 -0500

Another option would be to create another bag file without the unwanted topic using 'rosbag filter'

edit flag offensive delete link more

answered 2012-09-11 05:29:21 -0500

dornhege gravatar image

They hacky version would be to remap this somewhere, e.g. rosbag play ... my_topic:=my_topc_dev_null_no_one_will_subscribe_this

edit flag offensive delete link more

Question Tools


Asked: 2012-09-11 05:07:58 -0500

Seen: 9,072 times

Last updated: Sep 11 '12