74 const moveit_msgs::msg::WorkspaceParameters& wparams = req.workspace_parameters;
75 if (std::abs(wparams.min_corner.x) < std::numeric_limits<double>::epsilon() &&
76 std::abs(wparams.min_corner.y) < std::numeric_limits<double>::epsilon() &&
77 std::abs(wparams.min_corner.z) < std::numeric_limits<double>::epsilon() &&
78 std::abs(wparams.max_corner.x) < std::numeric_limits<double>::epsilon() &&
79 std::abs(wparams.max_corner.y) < std::numeric_limits<double>::epsilon() &&
80 std::abs(wparams.max_corner.z) < std::numeric_limits<double>::epsilon())
82 RCLCPP_WARN(logger_,
"It looks like the planning volume was not specified. Using default values.");
83 moveit_msgs::msg::WorkspaceParameters& default_wp = req.workspace_parameters;
84 const auto params = param_listener_->get_params();
86 default_wp.min_corner.x = default_wp.min_corner.y = default_wp.min_corner.z =
87 -params.default_workspace_bounds / 2.0;
88 default_wp.max_corner.x = default_wp.max_corner.y = default_wp.max_corner.z =
89 params.default_workspace_bounds / 2.0;