pantor / ruckig

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

Python position_extrema seg fault #48

Closed ljarin closed 3 years ago

ljarin commented 3 years ago

Hello again,

I tried out the python binding for Trajectory.position_extrema, and was getting a seg fault. I believe this was caused by 0 being passed in for DOFs for the binding, causing the Vector to be size 0. I think I fixed it here https://github.com/ljarin/ruckig/commit/6bf9303a495719c301ef8cde0fc06652c41dfc80, but I didn't run your tests

pantor commented 3 years ago

Thanks for catching this one! The latest commit should fix this.