Skip to main content

Python library to convert ros message streams to pandas dataframes.

Project description

pipeline status coverage report

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rosbags_dataframe-0.10.1.tar.gz (104.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rosbags_dataframe-0.10.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file rosbags_dataframe-0.10.1.tar.gz.

File metadata

  • Download URL: rosbags_dataframe-0.10.1.tar.gz
  • Upload date:
  • Size: 104.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for rosbags_dataframe-0.10.1.tar.gz
Algorithm Hash digest
SHA256 821ce7d168f87d5d81cffb00d7bd49d823cba159726689e6a14b8fa9efd11ddc
MD5 a68ad2fd67fb002d9cb53ef6bf92fbec
BLAKE2b-256 f6e3c3e6ac2c2c04a225b83916247d3b9395908a72e598e54b04478a9981585d

See more details on using hashes here.

File details

Details for the file rosbags_dataframe-0.10.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rosbags_dataframe-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b1dea3d2e68a92ed4524bd258e381a2bb0c655c409a830da9ad24cffb1aad32
MD5 aab3edec8beb71344ba6fbea3778bb66
BLAKE2b-256 a4a53a9499581e3daa8db83aa98698ed560c010575c39b4cc61decb2d3a34776

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page