A python script for plotting ros bag file, replacement of rxbag for ros version higher than groovy
On terminal:
$rosrun bag_plot read_bag.py /path/to/bag/xxx.bag
On GUI:
- Check topics to select corresponding msg
- Check variables to select values to plot
- Click
Load
to plot, the first time for load will take a while - Click
Clear
to reset figure params - Click
Save Figure
to save current plot asplot.png
in the current folder
GUI | Saved plot.png |
- Right click on plot to draw a vertical line
- Drag any subplot in x to move all subplots in x dimension
- Drag any subplot in y to move that subplot in y dimension
- Scroll up/down to scale in x dimension
- Shift + Scroll up/down to scale in y dimension
- nav_msgs/Odometry
- sensor_msgs/Imu
- geometry_msgs/PoseStamped
- geometry_msgs/PoseWithCovarianceStamped
- sensor_msgs/Range
- quadrotor_msgs/PositionCommand
- quadrotor_msgs/TRPYCommand
- quadrotor_msgs/SO3Command