Ask Your Question
0

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
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 10 times

Last updated: Aug 11