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

Subsampling a bagfile

asked 2019-08-11 09:14:58 -0500

Younès gravatar image

I want to subsample a bag file of images to one keyframe per-second. I'm using ROS kinetic. I'm running Ubuntu 16.04 on a laptop i7 64 bits with a kernel Linux 4.15.0-55-generic

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-08-11 17:33:28 -0500

This question appears to be very similar to this previous Q/A (278458). Unfortunately, it appears there is no one-liner solution to this, but using the rosbag API lets you do anything.

A straightforward option to use when your application involves playing back the bag data would be running a topic_tools/throttle node on the topic(s) and feed those to subscribers instead of the original one(s).

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-08-11 09:14:58 -0500

Seen: 133 times

Last updated: Aug 11 '19