-
Notifications
You must be signed in to change notification settings - Fork 188
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
Publish correct joint velocities in r6bot example 7 #430
Publish correct joint velocities in r6bot example 7 #430
Conversation
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 fixing it
@ecmjohnson The changes explain themself, however, out of curiosity, did you get this message when the robot is moving? or when it is steady?. I'm asking because the velocities are non-zero |
@saikishor These are the commanded velocities published in the |
@ecmjohnson I'm just asking if the copy of message you have in the description after the fix is during the execution of the trajectory or not?. Because of course it doesn't make sense that your initial or final state of the trajectory is with non-zero velocities. If this is the case, the resulting velocities could be due to the planner we are using. Thank you |
@saikishor Sorry, I must be misunderstanding something. The The single point I included from the trajectory may be confusing. I included a single point (the last from before Full joint trajectory message after change
|
@ecmjohnson thanks for the information. Fine then the issue is coming from the solver itself. |
I had a quick look. The IK solver is called with a twist in tool frame and generates a velocity vector in joint space, which is then integrated to positions. That's why the velocity is not zero in the end: one should probably add another field to the message with the last position (is discarded now) and zero velocity. |
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.
Merging this one now.
Co-authored-by: Erik Johnson <erikjohnson@blackberry.com> (cherry picked from commit 7ddc8d3)
Co-authored-by: Erik Johnson <erikjohnson@blackberry.com> (cherry picked from commit 7ddc8d3)
Thank you @christophfroehlich |
Resolves #427 by copying joint velocities into the trajectory point's velocity field. This makes no functional difference for the r6bot controller when both position and velocity are provided as shown by @christophfroehlich here.
Tested by echoing the
/r6bot_controller/joint_trajectory
topic. Prior to the change, bothvelocities
andpositions
were always the same:After the change, the
velocities
andpositions
differ:No difference in the example is observed.