Closed toancea closed 6 months ago
Hi Tudor,
it seems to me that your initial state will always result in a negative velocity - even when the system is accelerating with full maximum jerk. You can see that the acceleration increases as much as it is allowed to, but it still reaches negative velocity.
This is the expected behavior of Ruckig. It will use the maximum allowed limits to brake without creating new limit violations where possible.
As a side note, I'm not sure if a minimum velocity of zero is fully supported. Let me know if you see any other issues.
Thank you for your prompt answer. I will add some post-processing to manually deal with such cases.
Hey there,
I am working on a simple 1D trajectory generation with ruckig, where the goal is to reach a position
sE
with zero velocity and acceleration, while satisfying constraints on velocity, acceleration, jerk. One of the constraints is to always have positive velocity (i.e. forward motion). In some cases (i.e. for some values ofsE
, constraints and initial conditions), the trajectory given by ruckig does not satisfy the constraints, and not error is thrown, or negative exit code is returned.You can find below a minimal repro:
which gives the following output:
At first I thought they might be numerical issues that would be within some tolerances but:
Is there a ruckig limitation I am not aware of? Or did I mess something up in the problem setup?
Thank you in advance for your precious help.
Bets,
Tudor