hungpham2511 / toppra

robotic motion planning library
https://hungpham2511.github.io/toppra/index.html
MIT License
625 stars 170 forks source link

phase-plane plot #27

Closed GitLele92 closed 5 years ago

GitLele92 commented 5 years ago

Is still possible using TOPP-RA to directly plot phase-plane? It was possible in TOPP but i cannot find the way to do this in TOPP-RA. Thank you.

hungpham2511 commented 5 years ago

@GitLele92 Please take a look at this example. You obtain velocity-profile with return_data flag, then plot normally with matplotlib.

https://github.com/hungpham2511/toppra/blob/master/examples/kinematics.py#L39

GitLele92 commented 5 years ago

thank you. Sorry for the silly question,but once I have those data how do I have to organize the plot to get the same result of plotProfile of TOPP?

hungpham2511 commented 5 years ago

TOPP-RA is a different algorithm. Comparing with TOPP, it does not compute many things that plotProfile shows, such as the switch points, or the Velocity Limit Curves.

So basically you can not get the same plot that plotProfile produces.

If you are interested in the difference, please have a look at the paper https://arxiv.org/abs/1707.07239