36 #include <arm_navigation_msgs/CollisionOperation.h> 37 #include <arm_navigation_msgs/SimplePoseConstraint.h> 39 #include <arm_navigation_msgs/MoveArmGoal.h> 50 arm_navigation_msgs::PositionConstraint position_constraint;
51 arm_navigation_msgs::OrientationConstraint orientation_constraint;
53 move_arm_goal.motion_plan_request.goal_constraints.position_constraints.push_back(position_constraint);
54 move_arm_goal.motion_plan_request.goal_constraints.orientation_constraints.push_back(orientation_constraint);
65 const std::vector<std::string>& exclude_names,
66 std::vector<arm_navigation_msgs::CollisionOperation>& collision_operations)
68 for(std::vector<std::string>::const_iterator it = all_names.begin();
69 it != all_names.end();
71 if(std::find(exclude_names.begin(), exclude_names.end(), *it) == exclude_names.end()) {
72 arm_navigation_msgs::CollisionOperation coll;
74 coll.object2 = coll.COLLISION_SET_OBJECTS;
75 coll.operation = coll.DISABLE;
76 collision_operations.insert(collision_operations.end(),coll);
77 coll.object2 = coll.COLLISION_SET_ATTACHED_OBJECTS;
78 collision_operations.insert(collision_operations.end(),coll);
79 for(std::vector<std::string>::const_iterator it2 = all_names.begin();
80 it2 != all_names.end();
82 if(*it != *it2 && std::find(exclude_names.begin(), exclude_names.end(), *it2) == exclude_names.end()) {
85 collision_operations.insert(collision_operations.end(),coll);
void generateDisableAllowedCollisionsWithExclusions(const std::vector< std::string > &all_names, const std::vector< std::string > &exclude_names, std::vector< arm_navigation_msgs::CollisionOperation > &collision_operations)
Generate ordered collision operates that disable all collisions in a vector of names except for a spe...
void poseConstraintToPositionOrientationConstraints(const arm_navigation_msgs::SimplePoseConstraint &pose_constraint, arm_navigation_msgs::PositionConstraint &position_constraint, arm_navigation_msgs::OrientationConstraint &orientation_constraint)
Convert a simple pose constraint into a position and orientation constraint.
void addGoalConstraintToMoveArmGoal(const arm_navigation_msgs::SimplePoseConstraint &pose_constraint, arm_navigation_msgs::MoveArmGoal &move_arm_goal)
Add a goal constraint to the move arm action goal.