Skip to main content

Trajectory in SE(3) space with utilities.

Project description

The cnspy_trajectory Package

A Trajectory object consists of a matrix of positions, orientations (Quaternions) and associated timestamps. The object can be created by passing the these three matrices or by passing a Pandas DataFrame object containing them. The DataFrame will be converted using the class TUMCSV2DataFrame.

A trajectory object offers some conversions, load/store methods, plot, spatial transformations, etc.

A TrajectoryEstimated is a specialization of a Trajectory, holding a covariances of the position and orientation to the timestamps, which can be loaded form a DataFrame too.

The TrajectoryPlotter offers methods to visualize a (or multiple) Trajectory objects.

class_diagram

Installation

Install the current code base from GitHub and pip install a link to that cloned copy

git clone https://github.com/aau-cns/cnspy_trajectory.git
cd cnspy_trajectory
pip install -e .

or the official package via

pip install cnspy-trajectory

Dependencies

It is part of the cnspy eco-system of the cns-github group.

PlotTrajectory

trajectory$ python PlotTrajectory.py -h
usage: PlotTrajectory.py [-h] [--filename FILENAME] [--result_dir RESULT_DIR] [--verbose] [--plot_3D] [--plot_pose] [--show_plots] [--save_metrics]

PlotTrajectory: tool to save plots and metrics of a trajectory

optional arguments:
  -h, --help            show this help message and exit
  --filename FILENAME   csv filename
  --result_dir RESULT_DIR
                        directory to store results]
  --verbose
  --plot_3D
  --plot_pose
  --show_plots
  --save_metrics

Examples

Please refer to the unit-tests Trajectory_Test and TrajectoryEstimated_Test in Trajectory/TrajectoryEstimated.py. For plotting options to the unit-test TrajectoryPlotter_Test.

Pose plot

pose

Pose plot 3D

plot3d

Mutli pose plot 3D

multi

License

Software License Agreement (GNU GPLv3 License), refer to the LICENSE file.

Sharing is caring! - Roland Jung

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

cnspy_trajectory-0.2.8.tar.gz (42.6 kB view details)

Uploaded Source

Built Distribution

cnspy_trajectory-0.2.8-py3-none-any.whl (62.0 kB view details)

Uploaded Python 3

File details

Details for the file cnspy_trajectory-0.2.8.tar.gz.

File metadata

  • Download URL: cnspy_trajectory-0.2.8.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for cnspy_trajectory-0.2.8.tar.gz
Algorithm Hash digest
SHA256 00dfafb9724eb107ec94aae77d649010d8f72c97cf0ae132816e31a4c3696a29
MD5 eaf8377c8b03c7201413640ba7faaec4
BLAKE2b-256 92a54c9ebc15c9d5932526bac0fef9905c3e051fcf4893d3ef4f8ff18bfd989b

See more details on using hashes here.

File details

Details for the file cnspy_trajectory-0.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for cnspy_trajectory-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f62c74afb2fcfc6bf81070efb4e2a960b4c12a6be043acebd186470273b0f5b3
MD5 a44d6de6c96c5981561c73e327c297aa
BLAKE2b-256 51372dab0b8879fd319ab183669e425f482581ce72e3e26b109dd9ebd34281f7

See more details on using hashes here.

Supported by

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