ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

[MoveIt!] Goal tolerance for inverse kinematics

asked 2017-07-31 08:47:23 -0500

F4bich gravatar image

Hi there!

I implemented a small program to test for a sequence of positions if a solution for inverse kinematics exists. I used some of the code from the tutorial. Now, I would like to set the GoalOrientationTolerance and GoalPositionTolerance as it can be done in the move_group API, however it seems like I only can set the number of attempts and the timeout.

Is there a way to initiate inverse kinematics computation with different tolerances? And what is the default tolerance?

My thanks, F4bich

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2017-08-02 06:52:42 -0500

v4hn gravatar image

updated 2017-08-02 06:56:55 -0500

Hey F4bich,

good to hear you are still working with this! :)

Sadly, there is no exposed interface at the moment to set the tolerance per IK request. I'm thinking about more generic interfaces for IK plugins at the moment, but nothing has been implemented yet.

The general default tolerance for IK plugins in MoveIt is 1e-5, although every plugin specifies this on their own and it also remains for the plugin to decide what that tolerance means w.r.t. the combination of position & orientation differences.

The kdl plugin reads a ros parameter "epsilon" that allows to set the tolerance during startup. TracIK does not export its epsilon as a parameter, but I'm sure they would welcome a pull-request to change that though.

As jrgnicho already proposed you could use the low-level functions of KDL/TracIK where you can pass in tolerance as a parameter.

-- Addition --

Please be aware that there is a fundamental difference between Goal*Tolerance for MoveGroup requests and epsilon/tolerance values for IK requests. MoveIt samples from the regions specified by the former and passes the sampled poses to the IK plugin to generate goal poses for planning. The latter are directly passed to the IK plugin.

edit flag offensive delete link more
1

answered 2017-08-01 09:08:33 -0500

You can try link text. It takes tolerances on the cartesian pose.

edit flag offensive delete link more

Comments

Do you know if it is possible to use this through the MoveIt! API?

F4bich gravatar image F4bich  ( 2017-08-01 10:20:47 -0500 )edit

Here is the link to the moveit plugin , However, it looks like the tolerance cannot be specified at the plugin level.

jrgnicho gravatar image jrgnicho  ( 2017-08-01 15:23:26 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-07-31 08:47:23 -0500

Seen: 2,353 times

Last updated: Aug 02 '17