On Wed, Sep 1, 2010 at 7:58 AM, Armin Hornung <HornungA@informatik.uni-freiburg.de> wrote:
This looks like rosbag plays back the messages just as they are stored
in the bag file, and rviz displays things immedately as they arrive,
regardless of eventual timestamps in the messages.
Is there a
postprocessing step, playback option or similar I could try to get a
smooth linear close-to-realtime visualization?
I tried "rosrun rosbag
bagsort.py" to at least sort the messages, but that currently results in
a python error (cturtle, used to work in boxturtle):
Maybe there's already a tool available which buffers a few messages and
sends them out at the correct frequency by their timestamp in the
header? If not, then that's probably what I need to hack up ;)
import roslib; roslib.load_manifest('rosbag')import sys, rosbagoutbag = rosbag.Bag(sys.argv[2], 'w')try:for topic, msg, t in rosbag.Bag(sys.argv[1]).read_messages():outbag.write(topic, msg, msg.header.stamp if msg._has_header else t)finally:outbag.close()