Add new IK/FK virtual methods and const correctness in base interface - #297
Add new IK/FK virtual methods and const correctness in base interface#297oguzhanbzglu wants to merge 3 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #297 +/- ##
==========================================
- Coverage 80.11% 78.93% -1.18%
==========================================
Files 7 7
Lines 538 546 +8
Branches 249 250 +1
==========================================
Hits 431 431
- Misses 39 47 +8
Partials 68 68
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| /** | ||
| * \brief Convert joint state to Cartesian pose using forward kinematics. | ||
| */ | ||
| virtual bool convert_joint_state_to_cartesian_pose( |
There was a problem hiding this comment.
Isn't this the same as calculate_link_transform? I don't think that this is compatible with the current API if we don't pass the link_name.
There was a problem hiding this comment.
Yes that is true thanks for pointing. I have removed it.
The const changes cause a problem for ABI pipeline. I removed them. |
|
This PR is stale because it has been open for 45 days with no activity. Please tag a maintainer for help on completing this PR, or close it if you think it has become obsolete. |
Summary
Extends the
KinematicsInterfacebase class with optional IK/FK methods andconst-correctness in
calculate_frame_difference.Changes
kinematics_interface (base class):
return falseimplementations:convert_cartesian_pose_to_closest_joint_state— IK to closest solution given seed stateconvert_cartesian_pose_to_joint_state_within_range— IK within joint range constraintsconvert_cartesian_pose_to_possible_joint_states— IK returning all solutionsconvert_joint_state_to_cartesian_pose— FK returning Cartesian posecalculate_frame_difference: input parametersx_aandx_bare nowconstkinematics_interface_kdl and kinematics_interface_pinocchio (existing interfaces):
calculate_frame_differencesignature to match the corrected base classNote
return falseso existing plugins are not broken.constupdate and the virtual methods also can be separated from this MR if this seems necessary.See also other PRs: