Python library to convert ros message streams to pandas dataframes.
Project description
Rosbags-dataframe
Rosbags-dataframe a python library to ease the create of pandas dataframes from rosbag messages. It is part of the larger Rosbags ecosystem.
Rosbags-dataframe does not have any dependencies on the ROS software stacks and can be used on its own or alongside ROS1 or ROS2.
Getting started
Rosbags-dataframe is published on PyPI and does not have any special dependencies. Simply install with pip:
pip install rosbags-dataframe
Get a dataframe from a rosbag:
from pathlib import Path
from rosbags.dataframe import get_dataframe
from rosbags.highlevel import AnyReader
with AnyReader([Path('test1.bag'), Path('test2.bag')]) as reader:
dataframe = get_dataframe(reader, '/gps', ['latitude', 'longitude'])
Documentation
Read the documentation for further information.
Contributing
Thank you for considering to contribute to rosbags-dataframe.
To submit issues or create merge requests please follow the instructions provided in the contribution guide.
By contributing to rosbags-dataframe you accept and agree to the terms and conditions laid out in there.
Development
Clone the repository and setup your local checkout:
git clone https://gitlab.com/ternaris/rosbags-dataframe.git cd rosbags-dataframe python -m venv venv . venv/bin/activate pip install -r requirements-dev.txt pip install -e .
This creates a new virtual environment with the necessary python dependencies and installs rosbags-dataframe in editable mode. The rosbags-dataframe code base uses pytest as its test runner, run the test suite by simply invoking:
pytest
To build the documentation from its source run sphinx-build:
sphinx-build -a docs public
The entry point to the local documentation build should be available under public/index.html.
Support
Professional support is available from Ternaris.
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 Distribution
Built Distribution
File details
Details for the file rosbags_dataframe-0.10.0.tar.gz
.
File metadata
- Download URL: rosbags_dataframe-0.10.0.tar.gz
- Upload date:
- Size: 49.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ccfbf9bda27de8588bdc722409508cc9f0bf4199a0d29796eed686b1a4daf0 |
|
MD5 | e1a74332e212e98ab8f7db53b0e5c390 |
|
BLAKE2b-256 | 81057c8090b744abfb1555f1442588a58be99c6c8f3448cdf6179f2bc964b697 |
File details
Details for the file rosbags_dataframe-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: rosbags_dataframe-0.10.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d865c15ad674808b28d16e26cbd8612f3134145c4b9bac485e2b253ede5dc90a |
|
MD5 | 0e9ae8cfe05c2f2a4e67e08bf5adbbe2 |
|
BLAKE2b-256 | 973e76f7e6f8719ebe4ef737d8e176a477bac80273936ae0798c74911d187281 |