Last active
June 18, 2020 22:43
-
-
Save rahulbhadani/600c7129ef9b43dc4f35483e4d1a154f to your computer and use it in GitHub Desktop.
Reading and Plotting Bagfiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to install bagpy: | |
# pip install bagpy | |
# documentation: https://jmscslgroup.github.io/bagpy/ | |
# Repo: https://github.com/jmscslgroup/bagpy | |
import bagpy | |
from bagpy import bagreader | |
b = bagreader('/home/ivory/Downloads/2020-06-18-17-30-23.bag') | |
print(b.topic_table) | |
# plot standard data | |
b.plot_std() | |
# plot velocity data | |
b.plot_vel() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment