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

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
    constraints.orientation_constraints.append(oc)
    move_group.set_path_constraints(constraints)

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!

-Sarah

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

Comments

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

Question Tools

2 followers

Stats

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

Seen: 585 times

Last updated: Jun 27 '17