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

Acceleration Constrained motion vs jerk constrained motion #193

Open programmeddeath1 opened 1 month ago

programmeddeath1 commented 1 month ago

I am running offline joint space planning for a delta robot using ruckig. For a pick and place path we are plotting the vertices and using ruckig to generate the motion plan for individual straight line segments.

When we are running the acceleration controlled motion (by not passing max jerk, current accel and target accel) the pick and place motion happens properly on our servo motors, but when we run the jerk controlled motion at the same max vel and max accel, almost at all values there is a jerk/jitter or there is a swing at the pick/place position indicating an overshoot or undershoot. At only a particular max jerk value after quite a lot of testing, we get a proper motion. These are only on specific max jerk values on which motion happens properly for a specific max velocity and max acceleration below which and above which we get overshoots and undershoots. And on some velocities we do not find any max jerk values for which proper smooth motion happens and only on extremely high jerks we ge proper path being followed but ofcourse extremely jerky motion.

Is this normal behavior or is there some issue in the way we have integrated ruckig into our motion planning setup?

The control cycle we are working with is 0.015 to 0.04 and we are using a hybrid servo drives running using a micro-controller setup.

is it possible to get the max_jerk value which ruckig uses by default in the acceleration control motion? In the latest release does the expose current jerk value show this jerk value?