Robotics StackExchange | Archived questions

Subsampling a bagfile

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

Asked by Younès on 2019-08-11 09:14:58 UTC

Comments

Answers

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).

Asked by Stefan Kohlbrecher on 2019-08-11 17:33:28 UTC

Comments