GithubHelp home page GithubHelp logo

amos-chen98 / optimal_trajectory_generator Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 27 KB

Generate minimum-jerk trajectory from input waypoints (pure Python implementation)

License: GNU General Public License v3.0

CMake 29.08% Python 70.92%
optimization trajectory-generation

optimal_trajectory_generator's Introduction

optimal trajectory generator

About

This is a lightweight Python implementation of a trajectory generator. Set some waypoints in RViz through a few clicks, and it will generate a minimum jerk trajectory in milliseconds!

ezgif.com-video-to-gif

Untitled

Usage

1. Install

git clone https://github.com/Amos-Chen98/optimal_trajectory_generator.git
cd optimal_trajectory_generator
catkin build

Remember to source the setup.bash.

2. Play with this

In one terminal, run

roslaunch traj_generator demo.launch 

This will launch Rviz and config it properly.

Then, in another terminal, run

rosrun traj_generator main_node.py 

Now use the 2D Nav Goal to set a few waypoints in RViz. When the number of waypoints reaches the predefined number (default is 8), trajectory generation will be triggered automatically and you can see the trajectory with its dynamic.

Reference

[1] Z. Wang, X. Zhou, C. Xu and F. Gao, "Geometrically Constrained Trajectory Optimization for Multicopters," in IEEE Transactions on Robotics, vol. 38, no. 5, pp. 3259-3278, Oct. 2022, doi: 10.1109/TRO.2022.3160022.

optimal_trajectory_generator's People

Contributors

amos-chen98 avatar

Stargazers

Nobby- avatar Garry Proshian avatar  avatar  avatar  avatar Hantao Jiang avatar Han Bo avatar LI, Jinjie avatar

Watchers

 avatar

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.