planning with orientation constraint in moveit
Hi, I set an end-effector orientation constraint for planning using Moveit, but computed motions have some jerky points.
with RRT (OMPL) : http://youtu.be/waVhHUCFRvo with RRT* (OMPL) : http://youtu.be/5vDLr5XhvJQ
It looks the configuration suddenly changes to another IK solution in such points. What should I do to get smooth trajectories?
I am using ROS Hydro and Moveit. I used below code for setting the orientation constraint.
moveit_msgs::OrientationConstraint ocm;
ocm.link_name = "end_effector_link";
ocm.header.frame_id = "segment_0";
ocm.orientation.x = 0;
ocm.orientation.y = 0;
ocm.orientation.z = -INV_SQRT_2;
ocm.orientation.w = INV_SQRT_2;
ocm.absolute_x_axis_tolerance = 0.5;
ocm.absolute_y_axis_tolerance = 0.5;
ocm.absolute_z_axis_tolerance = M_PI;
ocm.weight = 1.0;
req.path_constraints.orientation_constraints.push_back(ocm);
Asked by chpark on 2015-02-24 03:32:09 UTC
Answers
It seems that setting the robot to have non-continuous rotation (i.e. only -pi to pi) solves the issue
Asked by Rufus on 2020-05-26 05:22:39 UTC
Comments
I am struggling with orientation constraints and I am also working with a Kuka arm. Did you managed to make it work properly under MoveIt ?
Asked by sangfuu on 2016-01-12 10:59:54 UTC
a bit late but see here https://github.com/ros-planning/moveit/pull/541
Asked by Mehdi. on 2019-07-23 12:59:00 UTC