roboticslab-uc3m / kinematics-dynamics

Kinematics and dynamics solvers and controllers.
https://robots.uc3m.es/kinematics-dynamics/
GNU Lesser General Public License v2.1
19 stars 12 forks source link

Think about a gcode interpreter #133

Closed jgvictores closed 2 years ago

jgvictores commented 6 years ago

Just a fun idea commented with @PeterBowman yesterday: Develop a program that opens a .gcode file (pretty sure that inkscape can export this, which is cool for example after vectorizing a bitmap), and can create an instance of an object that inherits from Trajectory that is runnable via BasicCartesianControl (note that some methods to do this still do not exist).

jgvictores commented 6 years ago

Blocked by #134 and #135.

jgvictores commented 6 years ago

Just for completeness, the syntax we were thinking about is similar to:

./launchGcode --file whatever.gcode --orient 1 0 0 0
David-Estevez commented 6 years ago

There is a specific need for the gcode? You can obtain the trajectory directly from a SVG file, without the need to convert to gcode, if you are careful with the desired dimensions of the trajectory.

jgvictores commented 6 years ago

No, it's just an idea, no practical use-case. The benefit of .gcode is we could even use slic3r-generated trajectories. :smile:

PeterBowman commented 2 years ago

Any trajectory classes we envisioned have been superseded by KDL: https://github.com/roboticslab-uc3m/kinematics-dynamics/issues/134#issuecomment-794102173. Perhaps we can write a small script to convert from gcode to text, and then use our playback app (see tools repo). @jgvictores shall we close this as invalid or wontfix?

jgvictores commented 2 years ago

shall we close this as invalid or wontfix?

Yup!

jgvictores commented 7 months ago