Repository navigation
Multi DOF Trajectory only providing translation not velocity - #555
Conversation
davetcoleman
left a comment
There was a problem hiding this comment.
This is a great addition, but lets make it a little more generic
|
|
||
| geometry_msgs::Twist point_velocity; | ||
|
|
||
| for (std::size_t ii = 0; ii < names.size(); ++ii) |
There was a problem hiding this comment.
instead of having an i, j, and ii iterator var, how about naming it k or something more descriptive?
| trajectory.multi_dof_joint_trajectory.points[i].transforms[j]); | ||
| if (waypoints_[i]->hasVelocities()) | ||
| { | ||
| const std::vector<std::string> names = mdof[j]->getVariableNames(); |
There was a problem hiding this comment.
please add a check for the type of mdof joint and only use the code below if its a planar joint. if you are inclined, add support for a floating joint also. Note that you'd have to check for trans_[x|y|z] and rot_x, rot_y, rot_z, , rot_w which is a quaternion - I'm not sure how a velocity vector would work for that. If you don't want to implement support for that joint type, add a comment with a TODO
There was a problem hiding this comment.
I don't currently have anything to test a floating joint but it will likely come into my scope soon enough. I have added the todo and will get back to it another time.
There was a problem hiding this comment.
spelling: plainer -> planar
davetcoleman
left a comment
There was a problem hiding this comment.
almost ready to merge :)
| trajectory.multi_dof_joint_trajectory.points[i].transforms[j]); | ||
| if (waypoints_[i]->hasVelocities()) | ||
| { | ||
| const std::vector<std::string> names = mdof[j]->getVariableNames(); |
There was a problem hiding this comment.
spelling: plainer -> planar
| { | ||
| tf::transformEigenToMsg(waypoints_[i]->getJointTransform(mdof[j]), | ||
| trajectory.multi_dof_joint_trajectory.points[i].transforms[j]); | ||
| // [TODO] currently only checking for plainer multi DOF joints need to add check for floating |
|
@davetcoleman I fixed up the comment and approve this pull-request. I believe this is ready for merge (unless CI stabs me in the back...) |
|
@v4hn thanks for that I have been off this work for a few days. |
Multi DOF Trajectory only providing translation not velocity (moveit#555) * fixes for multi dof velocties * cleaned up for pull request * check added for planar joint TODO added for floating, for loop cleaned up * cleanup comment
|
Document update would be great for this? |
* Update CMakeLists.txt * Revert "Update CMakeLists.txt" This reverts commit afa8c8da9e320d83313ce94b1181945c2ba71da1. * move template function to .h * re-added default_value * Update moveit_ros/moveit_servo/include/moveit_servo/servo_parameters.h Co-authored-by: Jafar Abdi <[email protected]> * rerun CI * rerun CI * rerun CI * rerun CI * added note about duplicate symbols Co-authored-by: Jafar Abdi <[email protected]> Co-authored-by: Tyler Weaver <[email protected]>
Description
Currently, multi DOF joints are only publishing the translation this fix adds velocity.
Checklist
Thank you!