-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added handling of spline interpolation with end point velocities #169
Conversation
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think we forgot the local
keyword a couple of places
Added test for spline interpolation and trajectory data as test artifacts When spline interpolation has end points with velocities, the time is scaled such that the trajectory is followed, but we end with zero velocity.
It is done and ready for final review. You are more than welcome to have a look @fmauch. |
@fmauch please look as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks great!
My comments are mainly focused on making the script code easier to understand for future maintainers (including future-us ;-))
Thanks for the suggestions @fmauch, I have added some changes based on the comments to make the code easier to understand, so please have a look and let me know what you think :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking the time explaining things further @urmahp. This looks good!
# Maximum allowable joint speed in rad/s | ||
local max_speed = 6.283185 | ||
# The time needed to decelerate with 15 rad/s^2 to reach zero velocity when we move at maximum velocity. | ||
local deceleration_time = max_speed / max_deceleration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, now it makes sense :-)
Added test for spline interpolation and trajectory data as test artifacts
When spline interpolation has end points with velocities, the time is scaled such that the trajectory is followed, but we end with zero velocity.