ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Moveit Path Constraint Failure

asked 2017-06-03 19:07:37 -0600

velveteenrobot gravatar image

I'm using the moveit_commander interface on the Fetch robot and trying to add a path constraint. Here's some example code:

    constraints = Constraints()
    oc = OrientationConstraint()
    oc.link_name = "wrist_roll_link"
    oc.header.frame_id = "base_link"
    oc.weight = 1.0
    oc.orientation = orientation #current wrist_roll_link orientation
    oc.absolute_x_axis_tolerance = 3.14
    oc.absolute_y_axis_tolerance = 3.14
    oc.absolute_z_axis_tolerance = 3.14

Moveit still finds a plan, but the plan is seems to ignore the constraints and outputs an error that says:

/move_group GetPositionIK:1025: 0 is < negative number >

The results are the same for position and orientation constraints. The same code seemed to work in the past. Any ideas would be welcome!


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-27 11:09:39 -0600

v4hn gravatar image

did you figure this out?

The example you give is not restricting the orientation at all (tolerance = pi).

edit flag offensive delete link more


I didn't figure it out unfortunately. You're right that in my example the tolerance is just set to pi. I was using that code to test if the error still occurs when there isn't any constraint and it does. Even when you make the tolerance = pi, it still gives an error.

velveteenrobot gravatar image velveteenrobot  ( 2017-06-27 11:24:28 -0600 )edit

And when the tolerance is not pi, it gives an error and ignores the constraint.

velveteenrobot gravatar image velveteenrobot  ( 2017-06-27 11:24:44 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-06-03 19:07:37 -0600

Seen: 445 times

Last updated: Jun 27 '17