Repository navigation
KDL IK solver cleanup - #1294
Conversation
|
This contribution was clearly a ton of work and makes a ton of improvements. That said, it is really hard to review this for correctness. Can you please add tests to demonstrate the correctness of these changes? |
As already written in the main comment: These changes are verified by kinematics unit tests (#1272). |
c32fbc2 to
17da49e
Compare
- using IO functions of kdl to (efficiently) print joint arrays as row vectors - print time spent - rename "iterations" -> "attempts"
- fixed type of max_solver_iterations_ - directly read parameters into class members
This function is doing exactly the same as CartToJnt(). The extra argument lock_redundant_joints is not used at all.
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
mlautman
left a comment
There was a problem hiding this comment.
+1 from me. @v4hn's or @davetcoleman's, can you also take a look? I would like for another reviewer to look at this before it gets merged.
| * @param solution the solution vector | ||
| * @param error_code an error code that encodes the reason for failure or success | ||
| * @param lock_redundant_joints if setRedundantJoints() was previously called, keep the values of the joints marked as | ||
| * redundant the same as in the seed |
There was a problem hiding this comment.
| * redundant the same as in the seed | |
| * @param options An option struct which contains the type of redundancy discretization used. This default | |
| * implementation only supports the KinematicSearches::NO_DISCRETIZATION method; requesting any | |
| * other will result in failure. |
There was a problem hiding this comment.
I don't like to advertize the redundancy parameters anymore. They are not used by MoveIt.
Rather, they are parameters of IKfast only.
However, I added a generic comment as follows:
@param options container for other IK options. See definition of KinematicsQueryOptions for details.
... setting the timeout to zero and ensuring at least one solution attempt
remove weird initialization IKCallbackFn solution_callback = 0 but pass default-constructed IKCallbackFn()
- merge CartToJntRedundant() and CartToJnt() handling all variants - locked/unlocked redundant joints - mimic joints - full / position-only IK - use svd_eigen_HH in all cases - reuse matrices for all variants
Special handling of "redundant joints" doesn't make sense for KDL solver.
... to reduce data copying and memory allocations
- passing mimic_joints_ to constructor, storing reference, and avoiding copy - fix naming of members
- providing iteration number - using some indentation to facilitate grouping of output
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
|
Merged after having Mike's approval and having Dave's comments addressed. |
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
- perform similar cleanup as in moveit#1294 - actually use KDL's LMA solver (was instantiated but not used) - remove notion of mimic joints, as the LMA solver doesn't support this
Tracking down #1255 and in preparation of #1208, I first cleaned up the KDL IK solver code
These changes should not affect functionality as verified by kinematics unit tests (#1272). The cleanup yields a strong performance boost (running 10.000 deterministic IK attempts):
Please merge in conjuction with #1272 and #1288.