geometry_msgs::Pose target_pose3 = start_pose2; target_pose3.position.x += 0.2; target_pose3.position.z += 0.2; waypoints.push_back(target_pose3); // up and out
target_pose3.position.y -= 0.2; waypoints.push_back(target_pose3); // left
target_pose3.position.z -= 0.2; target_pose3.position.y += 0.2; target_pose3.position.x -= 0.2; waypoints.push_back(target_pose3); // down and right (back to start)
//attach or detach //从世界中移除物体 ROS_INFO("Remove the object from the world"); std::vector<std::string> object_ids; object_ids.push_back(collision_object.id); planning_scene_interface.removeCollisionObjects(object_ids);