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.
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.
- numpy
- matplotlib
- pandas
- scipy
- cnspy_numpy_utils
- cnspy_csv2dataframe
- cnspy_spatial_csv_formats
- cnspy_trajectory
- matplotlib.pyplot
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 plot 3D
Mutli pose plot 3D
License
Software License Agreement (GNU GPLv3 License), refer to the LICENSE file.
Sharing is caring! - Roland Jung
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 cnspy_trajectory-0.2.5.tar.gz
.
File metadata
- Download URL: cnspy_trajectory-0.2.5.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb7717ad913203d2f4b097ef5436d9b9ce80fb35d911c20a902e3427793473c |
|
MD5 | ebd8685031897f1380b217fbd676a7d3 |
|
BLAKE2b-256 | 412262d17737e64fb3578a1640d3f3a1db76f8cb437d796217c8aae70ae65a63 |
File details
Details for the file cnspy_trajectory-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: cnspy_trajectory-0.2.5-py3-none-any.whl
- Upload date:
- Size: 53.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f90855c831b5af0f092c38b7c498256c2434f8aace00a86c540c6032820ceaea |
|
MD5 | ea82a4b83d2f71ca6d01c69ec423f81e |
|
BLAKE2b-256 | f186afae06b49a352aa91a6090a918f973a2f33d0d90d2c866af5ca61587744e |