62 load_geometry_service_ =
context_->moveit_cpp_->getNode()->create_service<moveit_msgs::srv::LoadGeometryFromFile>(
63 LOAD_GEOMETRY_FROM_FILE_SERVICE_NAME,
64 [
this](
const std::shared_ptr<moveit_msgs::srv::LoadGeometryFromFile::Request>& req,
65 const std::shared_ptr<moveit_msgs::srv::LoadGeometryFromFile::Response>& res) {
66 std::ifstream file(req->file_path_and_name);
69 RCLCPP_ERROR(getLogger(),
"Unable to open file %s for loading CollisionObjects",
70 req->file_path_and_name.c_str());
75 locked_ps->loadGeometryFromStream(file);