Skip to main content

Python package for interfacing with robot data

Project description

robotdatapy

Welcome to robotdatapy! At its core, robotdatapy is a package designed to make accessing and manipulating robot/geometric data easy in Python.

Install

robotdatapy is available via PyPi! To install:

pip install robotdatapy

Or to install the most recent version:

git clone git@github.com:mbpeterson70/robotdatapy.git
cd robotdatapy
pip install .

Tutorial

The best way to get familiar with robotdatapy is through the introductory tutorial, accessible here.

Data Interfaces

The primary use of this package is for interfacing with robot data. When developing offline robot applications, it can be difficult to deal with all of the different ways that data can be saved in (ROS bags, csv files, individual images, etc.). The goal of this package is to provide classes for loading data from a variety of sources, enabling a downstream task to use these data interfaces without needing to account for where that data is coming from.

Additionally, when dealing with offline data, a user may want to get a camera image at a certain time as well as a robot pose estimate at that same time. However, pose estimates are often discrete and may not be synced with the camera image. This package provides a way of dealing with time synchronization between data via interpolation or finding the nearest datapoint to a requested timestamp.

This README briefly describes three robot data classes: PoseData, ImgData, and ArrayData. See the examples folder for example Python notebooks of interacting with different robot data.

PoseData

PoseData can load pose information from ROS1/2 bags, csv files, KITTI, or directly from a set of times and poses. Interpolation between poses is enabled by default, making it easy to get positions and orientations of a robot body at any time. Additionally, a transformation can be specified to be pre-multiplied or post-multiplied (via the T_premultiply or T_postmultiply keyword argument) changing the reference frame given by the PoseData object.

ImgData

ImgData can be loaded from ROS1/2 bags, a zipped file of images, a numpy npz files of times and images, or directly from a list of times and cv images. Depth images are supported as well.

ArrayData

This class can be used for storing generic data. For example, discrete samples of position, velocity, and acceleration. Linear interpolation can be turned on to enable accessing this data at any time.

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

robotdatapy-1.0.3.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

robotdatapy-1.0.3-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file robotdatapy-1.0.3.tar.gz.

File metadata

  • Download URL: robotdatapy-1.0.3.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for robotdatapy-1.0.3.tar.gz
Algorithm Hash digest
SHA256 58f58ccd67d3e8c725f37f74f726a9757bb6218fb8e8ea3c3110aa16610288a3
MD5 9b2abaa4cb148447275a828ce3c418b5
BLAKE2b-256 cab87322dcf505a615f691f9c26b143bd6bc0a56f18756d7c4760222840d4c23

See more details on using hashes here.

File details

Details for the file robotdatapy-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: robotdatapy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for robotdatapy-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d269d80cdf211f83bcdb74b5f8176a63f25aa252f59b994f41de8c2d78f9fa14
MD5 18155df49423f16e721581c2ce898302
BLAKE2b-256 fe2cc6746eccffe6556ed9957ee7400ea0ee447cbb17f8e2e3927055bdfd5dd3

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