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
Metadata
Release files for cnspy-trajectory 0.2.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cnspy_trajectory-0.2.14.tar.gz | 44.4 kB | Without provenance | Details for cnspy_trajectory-0.2.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cnspy_trajectory-0.2.14-py3-none-any.whl | Python 3 | none | any | Details for cnspy_trajectory-0.2.14-py3-none-any.whl |
Total release size: 109.3 kB
Release files / cnspy_trajectory-0.2.14.tar.gz
| Download URL | cnspy_trajectory-0.2.14.tar.gz |
|---|---|
| Size | 44.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
721c590d39bf9e7e5a00ae9e1e46afe45dc44f710ebc6bb8bae1a6065f2041b1
|
|
BLAKE2b-256 checksum How to use checksums |
266ad8dd5ce84bc0f35b6a4b8c3fcd1a4b1224a9c68cb750155d624ce13f59be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / cnspy_trajectory-0.2.14-py3-none-any.whl
| Download URL | cnspy_trajectory-0.2.14-py3-none-any.whl |
|---|---|
| Size | 64.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89b8a2fc91724dcb1f2bf5dac72340fcf9375ef6fb84e8705bdde898e2f82772
|
|
BLAKE2b-256 checksum How to use checksums |
3f36c47eb511898521339e2a36150fc524cc0474d4b1ea8d94d5238a848f152f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Security for cnspy-trajectory 0.2.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.