Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Repository files navigation

rosbag_controller

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.

Features

  • 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

How to Install with deb file

sudo dpkg -i $DEB_FILE

ex)

sudo dpkg -i ros-noetic-rosbag-controller_0.0.1-0focal_amd64.deb

How to Install with catkin_ws

1. Put the package in your catkin workspace

This package is expected to live under a catkin workspace, for example:

~/$YOUR_CATKIN_WS/src/rosbag_controller

2. Build the package

cd ~/$YOUR_CATKIN_WS
catkin_make --pkg rosbag_controller

3. Source the workspace

source ~/$YOUR_CATKIN_WS/devel/setup.bash

4. Start RViz and add the panel

Launch RViz, then add the panel from the RViz menu:

Panels -> Add New Panel...

Select:

rosbag_controller/RosbagPlayerPanel

How to Use

  1. Open the RosbagPlayerPanel in RViz.
  2. Click Add bag files and select one or more .bag files.
  3. The first bag starts automatically if nothing is already playing.
  4. Use Pause, Play, Previous, and Next to control playback.
  5. Click the progress bar to seek within the current bag.
  6. Right-click a queued file to Play it immediately or Delete it from the queue.

How to Make deb file

cd rosbag_controller
./build-local-deb.sh --ros-distro noetic --os-version focal

Notes

  • The plugin launches rosbag play --clock internally.
  • rosbag and rviz must be installed in the environment.
  • The workspace must be sourced before RViz can discover the plugin.
  • Playback progress depends on /clock from the rosbag playback process.

Package Overview

  • Plugin class: rosbag_controller/RosbagPlayerPanel
  • Base type: rviz::Panel
  • Plugin registration file: plugin_description.xml

About

The rviz plugin to control rosbag file

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.