pantor / ruckig

Motion Generation for Robots and Machines. Real-time. Jerk-constrained. Time-optimal.
https://ruckig.com
MIT License
635 stars 155 forks source link

Adding 15_visualizer for motion planning in the browser #159

Closed qknight closed 11 months ago

qknight commented 1 year ago

First: Ruckig is an awesome project. Want to look into the math side of it soon!

This PR integrates a motion planning visualization using plotly.js and this can be used from the webbrowser.

Main goal is to learn about the nature of the parameters for educational purposes

Oh, and here is a preview:

https://lastlog.de/blog/ruckig_motion_planning.html

open questions

This code is completely finished but it would be interesting to access the values of the individual segments, this seems to be possible according to:

But I can't access the values yet, do you have a hint for me?

pantor commented 1 year ago

Hi, thanks for your kind words and your pull request!

Regarding your question, you can access the internal profiles of a calculated trajectory via get_profiles() and their relevant array members.

I really like the idea of a web tool to play around and get an intuition of Ruckig! Can you move your files from the examples directory to doc/web-visualization? Ruckig already has a copy of nlohmann/json in the third_party/json directory, so please reuse that one.

I think our goal should be to host this to make it truly accessible. I’ll take a look into that in the coming week.

qknight commented 1 year ago

@pantor fixed all the open points, ready to merge ;-)

i also tested the build and html view after the changes, so on my end it works as outlined in the README.md (which i had to update since -it was missing)

qknight commented 1 year ago

meeeeep

pantor commented 11 months ago

Closed in favor of #164.