File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,11 @@ auto FieldOperatorApplication::plan(
371
371
plan (route.back ().pose , waypoints, route_option);
372
372
}
373
373
374
- template <typename Request, typename Waypoint>
374
+ template <
375
+ typename Request, typename Waypoint,
376
+ typename = std::enable_if_t <
377
+ std::is_same_v<Request, autoware_adapi_v1_msgs::srv::SetRoutePoints::Request> ||
378
+ std::is_same_v<Request, autoware_adapi_v1_msgs::srv::SetRoute::Request> > >
375
379
static auto make (
376
380
const geometry_msgs::msg::Pose & goal, const std::vector<Waypoint> & waypoints,
377
381
const FieldOperatorApplication::RouteOption & option) -> std::shared_ptr<Request>
@@ -389,11 +393,6 @@ static auto make(
389
393
for (const auto & waypoint : waypoints) {
390
394
request->segments .push_back (waypoint);
391
395
}
392
- } else {
393
- std::stringstream what;
394
- what << " Unsupported type of Request for make in" << __FILE__ << " : " << typeid (Request).name ()
395
- << " . autoware_adapi_v1_msgs::srv::SetRoutePoints::Request expected." ;
396
- throw common::Error (what.str ());
397
396
}
398
397
399
398
/*
You can’t perform that action at this time.
0 commit comments