26 std::string name, moveit_msgs::msg::CollisionObject &
object)
40 std::string frameid,
float x,
float y,
float z,
float xl,
float yl,
float zl)
43 getLogger(),
"[" <<
getName() <<
"] creating grasping object in planning scene: " << frameid);
44 moveit_msgs::msg::CollisionObject collision;
45 auto boxname = frameid;
47 collision.id = boxname;
48 collision.header.frame_id = frameid;
50 collision.primitives.resize(1);
51 collision.primitives[0].type = collision.primitives[0].BOX;
52 collision.primitives[0].dimensions.resize(3);
54 collision.primitives[0].dimensions[0] = xl;
55 collision.primitives[0].dimensions[1] = yl;
56 collision.primitives[0].dimensions[2] = zl;
58 collision.primitive_poses.resize(1);
59 collision.primitive_poses[0].position.x = x;
60 collision.primitive_poses[0].position.y = y;
61 collision.primitive_poses[0].position.z = z;
62 collision.primitive_poses[0].orientation.w = 1.0;
void createGraspableBox(std::string frameid, float x, float y, float z, float xl, float yl, float zl)
bool getGraspingObject(std::string name, moveit_msgs::msg::CollisionObject &object)
std::map< std::string, moveit_msgs::msg::CollisionObject > graspingObjects
rclcpp::Logger getLogger()
virtual std::string getName() const