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

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

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

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.

Thanks!

Cristian

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
7

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

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

http://www.ros.org/wiki/rosbag/Tutorials/Producing%20filtered%20bag%20files

edit flag offensive delete link more
7

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

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

Stats

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

Seen: 9,386 times

Last updated: Sep 11 '12