Re: [ros-users] rosbag looping and recording of parameters/s…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Josh Faust
Date:  
To: ros-users
Subject: Re: [ros-users] rosbag looping and recording of parameters/services
>
> I don't know Dejan's use-case, but we frequently want to visualize
> short snippets of sensor data repeatedly. Although rviz seems to
> handle that correctly, rosbag does not provide an option to repeat the
> data. That would be handy, but (as Dan mentioned) respawning rosbag or
> calling it in a shell while loop does work.
>
> Adding looping to "rosbag --clock" would allow it to publish the
> /reset_time when needed.
>


rviz has explicit handling of backwards time jumps for this case. I
generally do a bash loop, i.e.:
while true; do rosbag play --clock <bagfile; done