Coder Social home page Coder Social logo

cnspy_trajectory's Introduction

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.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.