Skip to main content

Spatial formats for CSV files.

Project description

cnspy_spatial_csv_formats Package

This package holds header and format definitions for CSV-files that hold timestamped 3D spatial information. By spatial

  • 3-DoF relative position (),
  • 3-DoF attitude ,
  • 6-DoF pose (position + orientation represented by quaternions in the [qx qy qz qw] order)
  • 3-DoF position and 3-DoF orientation with uncertainty (position and orientation uncertainties is given by two 3x3 upper triangular covariance matrices). TODO: make default assumption on the uncertainty space
  • 3-DoF position and 3-DoF orientation with typed uncertainty (position and orientation uncertainties is given by two 3x3 upper triangular covariance matrices) [1*].
  • 6-DoF pose with upper triangular pose uncertainty. TODO: make default assumption on the uncertainty space
  • 6-DoF pose with upper triangular pose typed uncertainty [1*] .

[1*] Typed uncertainty: The space/reference frame of the covariance is specified by the "est_err_type" and "err_representation" entry. In case of an error-state estimator, the error representation of the orientation needs to be specified in the CSV files. The estimation error types are defined in the EstimationErrorType file. The error representation type is defined in the ErrorRepresentationType file.

Orientation are represented by quaternions in the [qx qy qz qw] order, meaning that the real-part appears at the end aka JPL order.

File headers are in the first line of a CSV file should not start with a #, followed by a sequence of unique comma separated strings/chars.

It is highly recommended loading the CSV files into a pandas.DataFrame. For convenience, there is a package called cnspy_csv2dataframe that does the conversion using the CSVFormatPose definitions.

Note

The CSVFormatPose.TUM format, got it's name for file format used in the TUM RGB-D benchmark tool. Noticeable, is that the order of quaternion is non-alphabetically ([q_x,q_y,q_z, q_w] instead of [q_w, q_x, q_y, q_z]), meaning that first comes the imaginary part, then the real part, but this is just a matter of taste and definition! To be backward compatible with older/other tools (TUM RGB-D benchmark tool, rpg_trajectory_evaluation, etc.), we follow this non-alphabetically order! Note that the rpg_trajectory_evaluation framework is based on space-separated *.txt trajectory files, meaning that these files cannot be directly processed in the current framework as the file header cannot be interpreted correctly. Support may be added in future.

Installation

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

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

or the official package via

pip install cnspy-spatial-csv-formats

Dependencies

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

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_spatial_csv_formats-0.2.1.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

cnspy_spatial_csv_formats-0.2.1-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file cnspy_spatial_csv_formats-0.2.1.tar.gz.

File metadata

File hashes

Hashes for cnspy_spatial_csv_formats-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6d6494deac8080fc2ed2feac37a95f372e5766d479a74ecc08c0c4f067f51826
MD5 5b37a226e27019247e992fef8e730d70
BLAKE2b-256 d2e58d1051f30bbbb015efac41ff3d8356973aa3be971f4fba8e8d98fe6cb819

See more details on using hashes here.

File details

Details for the file cnspy_spatial_csv_formats-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cnspy_spatial_csv_formats-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85dafcd51171297a6913d8c82b424535cb2e4f4f576615e8a256bdb906fe2218
MD5 f5955dad39fbba8da5022dd82630d680
BLAKE2b-256 b8ad3e89c03e33797eb5532e4787d3424d17f7229ce8593433d92fc3d4edc9d0

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