You can give the record command multiple topics (ie. rosbag record /topic_a /topic_b) and it will record all of them into the same bag. You can also use the '-e' flag to record all topics matching some regular expression. If you find yourself always recording the same set of topics for debugging or data collection, you can start the rosbag record command from a launch file. Many projects will set up launch files with topic sets they use frequently. Just set pkg to 'rosbag' and type to 'record', then use the arguments attribute to pass in the topics and settings you'd like to use.
@@robojacketstraining6059 thanks so much. I did do this but then the rosbag file always ends up corrupted. So i just printed the messages directly to a text file. Like a jump over solution.
explained it like a boss....nice work
Excellent tutorial. Would you be doing a tutorial that shows how to step through each step of a rosbag using a python file?
Thank you!
I don't think we'll be doing a tutorial for that as it's a little beyond the scope of this course.
Very helpfull
How can u record numerous different topics in a very large project without hving to type rosbag everytime on the cmd line
You can give the record command multiple topics (ie. rosbag record /topic_a /topic_b) and it will record all of them into the same bag. You can also use the '-e' flag to record all topics matching some regular expression.
If you find yourself always recording the same set of topics for debugging or data collection, you can start the rosbag record command from a launch file. Many projects will set up launch files with topic sets they use frequently. Just set pkg to 'rosbag' and type to 'record', then use the arguments attribute to pass in the topics and settings you'd like to use.
@@robojacketstraining6059 thanks so much. I did do this but then the rosbag file always ends up corrupted.
So i just printed the messages directly to a text file. Like a jump over solution.