20 moveit_msgs::CollisionObject collision;
21 auto boxname = frameid;
23 collision.id = boxname;
24 collision.header.frame_id = frameid;
26 collision.primitives.resize(1);
27 collision.primitives[0].type = collision.primitives[0].BOX;
28 collision.primitives[0].dimensions.resize(3);
30 collision.primitives[0].dimensions[0] = xl;
31 collision.primitives[0].dimensions[1] = yl;
32 collision.primitives[0].dimensions[2] = zl;
34 collision.primitive_poses.resize(1);
35 collision.primitive_poses[0].position.x = x;
36 collision.primitive_poses[0].position.y = y;
37 collision.primitive_poses[0].position.z = z;
38 collision.primitive_poses[0].orientation.w = 1.0;
bool getGraspingObject(std::string name, moveit_msgs::CollisionObject &object)
std::map< std::string, moveit_msgs::CollisionObject > graspingObjects
void createGraspableBox(std::string frameid, float x, float y, float z, float xl, float yl, float zl)