pantor / ruckig

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

ErrorExecutionTimeCalculation #100

Closed fricher closed 2 years ago

fricher commented 2 years ago

Hello @pantor & happy new year !

I'm getting ErrorExecutionTimeCalculation with this input on ruckig 0.6.2 :

ruckig::InputParameter<1> inp;
ruckig::OutputParameter<1> outp;
ruckig::Ruckig<1> otg(0.004);
inp.control_interface = ruckig::ControlInterface::Position
inp.current_position = {0.02853333333333339};
inp.current_velocity = {0.6800000000000006};
inp.current_acceleration = {7.999999999999993};
inp.target_position = {0};
inp.target_velocity = {0};
inp.target_acceleration = {0};
inp.max_velocity = {1};
inp.max_acceleration = {10};
inp.max_jerk = {100};

With throw_error=true, it gives this exception in calculator_target.hpp:246:

[ruckig] error in step 1, dof: 0 input: 
inp.current_position = [0.02853333333333339]
inp.current_velocity = [0.6800000000000006]
inp.current_acceleration = [7.999999999999993]
inp.target_position = [0]
inp.target_velocity = [0]
inp.target_acceleration = [0]
inp.max_velocity = [1]
inp.max_acceleration = [10]
inp.max_jerk = [100]

Thanks for your help !

pantor commented 2 years ago

This should be fixed with the latest commit.

fricher commented 2 years ago

Thanks ! 👍