A python class to facilitate the reading of rosbag file based on semantic datatypes.
Project description
bagpy
A Python package to facilitate the reading of a rosbag file based on semantic datatypes.
bagpy provides a wrapper class bagreader written in python that provides an easy to use interface for reading
bag files recorded by rosbag record command. This wrapper class uses ROS's python API rosbag
internally to perform all operations. One of the interesting features about using bagreader is that a user doesn't
need to supply rostopic name to extract relevant data. One can extract data based on the
type of data the user is seeking.
Requirements
- Ubuntu 18.04 or later
- Python 3.6 or higher. Now, the preferred version is Python 3.9. With other versions, there are some dependency issues as how pip works has changed.
- Python 2.x support not available. Python 3.x virtual environment is recommended for pip installation.
- Works with Windows as well, how, I don't provide support for Windows. See my comment on an issue here: https://github.com/jmscslgroup/bagpy/issues/2#issuecomment-710095649
- Note: it is not compatible with ROS 2.
Installation
pip install bagpy
Usage principle
The philosophy behind developing this project is to make everything as simple and less confusing as possible.
As a result, there are not too many options or freedom of usage being provided by bagreader class.
If you need a wide variety of options, users can directly use ROS's rosbag python package or
Robotics System Toolbox APIs provided by MATLAB. However, if you are looking for simplicity, bagpy is an
elegant choice.
Examples
See Notebooks and python scripts at https://github.com/jmscslgroup/bagpy/tree/master/notebook for examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bagpy-0.5-py2.py3-none-any.whl.
File metadata
- Download URL: bagpy-0.5-py2.py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42789cdc0e35bbb1a0490a47becaa96adcc42258edc0b8cf7a4747589bef1c47
|
|
| MD5 |
b435577b305a9364a250544ec7e15103
|
|
| BLAKE2b-256 |
f5cc0743a31317afb9aeba7ed02f06fce8ff6ce5a60b9c30023c70dcdd98488d
|