rosbag_controller is an RViz panel plugin for sequential rosbag playback. It lets you add multiple .bag files, play them from inside RViz, move through the queue, pause/resume playback, and seek with the timeline.
- Add one or more rosbag files to a queue
- Play, pause, resume, and seek within the current bag
- Move to the previous or next bag
- Auto-advance to the next bag when playback finishes
- Right-click queued items to play or delete them
- Restore queued bag files and the current selection when RViz config is loaded
- Remember the last directory used in the file picker
sudo dpkg -i $DEB_FILEex)
sudo dpkg -i ros-noetic-rosbag-controller_0.0.1-0focal_amd64.debThis package is expected to live under a catkin workspace, for example:
~/$YOUR_CATKIN_WS/src/rosbag_controllercd ~/$YOUR_CATKIN_WS
catkin_make --pkg rosbag_controllersource ~/$YOUR_CATKIN_WS/devel/setup.bashLaunch RViz, then add the panel from the RViz menu:
Panels -> Add New Panel...
Select:
rosbag_controller/RosbagPlayerPanel
- Open the
RosbagPlayerPanelin RViz. - Click Add bag files and select one or more
.bagfiles. - The first bag starts automatically if nothing is already playing.
- Use Pause, Play, Previous, and Next to control playback.
- Click the progress bar to seek within the current bag.
- Right-click a queued file to Play it immediately or Delete it from the queue.
cd rosbag_controller
./build-local-deb.sh --ros-distro noetic --os-version focal- The plugin launches
rosbag play --clockinternally. rosbagandrvizmust be installed in the environment.- The workspace must be sourced before RViz can discover the plugin.
- Playback progress depends on
/clockfrom the rosbag playback process.
- Plugin class:
rosbag_controller/RosbagPlayerPanel - Base type:
rviz::Panel - Plugin registration file:
plugin_description.xml