Hi Steffen and Emili,
I was trying out this new feature and ran into a C++ signature error. I
am running the latest debian MoveIt packages under Ubuntu 12.04.
First, I think there is a statement missing below just before the
set_path_constraint() statement, namely:
constraints.orientation_constraints.append(orientation_constraint)
So my code looks like this:
start_pose = right_arm.get_current_pose(end_effector_link)
constraints = Constraints()
constraints.name = "Upright"
orientation_constraint = OrientationConstraint()
orientation_constraint.header = start_pose.header
orientation_constraint.link_name = right_arm.get_end_effector_link()
orientation_constraint.orientation = start_pose.pose.orientation
orientation_constraint.absolute_x_axis_tolerance = 0.5
orientation_constraint.absolute_y_axis_tolerance = 0.5
orientation_constraint.absolute_z_axis_tolerance = 3.14 #ignore this axis
orientation_constraint.weight = 1
constraints.orientation_constraints.append(orientation_constraint)
right_arm.set_path_constraints(constraints)
But when the script gets to the last statement above I receive the error:
right_arm.set_path_constraints(constraints)
File
"/opt/ros/hydro/lib/python2.7/dist-packages/moveit_commander/move_group.py",
line 347, in set_path_constraints
if not self._g.set_path_constraints(value):
Boost.Python.ArgumentError: Python argument types in
MoveGroup.set_path_constraints(MoveGroup, Constraints)
did not match C++ signature:
set_path_constraints(moveit::planning_interface::MoveGroupWrapper
{lvalue}, std::string)
python:
/usr/include/boost/thread/pthread/pthread_mutex_scoped_lock.hpp:26:
boost::pthread::pthread_mutex_scoped_lock::pthread_mutex_scoped_lock(pthread_mutex_t*):
Assertion `!pthread_mutex_lock(m)' failed.
Aborted (core dumped)
Am I missing something?
Thanks!
patrick