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
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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: 2019-08-11 09:14:58 -0500
Seen: 133 times
Last updated: Aug 11 '19