@@ -266,38 +266,6 @@ TEST_F(TestRouteHandler, getClosestLaneletWithinRouteWhenPointsInRoute)
266266 ASSERT_EQ (get_closest_lanelet_within_route (0.5 , 1.75 , 0 ).value (), 4424ul );
267267}
268268
269- TEST_F (TestRouteHandler, testGetLaneChangeTargetLanes)
270- {
271- {
272- // The input is within expectation.
273- // There exist no lane changing lane since both 4770 and 4775 are preferred lane.
274- const auto current_lanes = route_handler_->getLaneletsFromIds ({4770 , 4775 });
275- const auto lane_change_lane =
276- route_handler_->getLaneChangeTarget (current_lanes, Direction::RIGHT);
277- ASSERT_FALSE (lane_change_lane.has_value ());
278- }
279-
280- {
281- // The input is within expectation.
282- // There exist lane changing lane since 4424 is subset of preferred lane 9598.
283- const auto current_lanes = route_handler_->getLaneletsFromIds ({4775 , 4424 });
284- const auto lane_change_lane =
285- route_handler_->getLaneChangeTarget (current_lanes, Direction::RIGHT);
286- EXPECT_TRUE (lane_change_lane.has_value ());
287- ASSERT_EQ (lane_change_lane.value ().id (), 9598ul );
288- }
289-
290- {
291- // The input is within expectation.
292- // There is a lane-changing lane. Within the maximum current lanes, there is an alternative lane
293- // to the preferred lane. Therefore, the lane-changing lane exists.
294- const auto current_lanes = get_current_lanes ();
295- const auto lane_change_lane = route_handler_->getLaneChangeTarget (current_lanes);
296- ASSERT_TRUE (lane_change_lane.has_value ());
297- ASSERT_EQ (lane_change_lane.value ().id (), 9598ul );
298- }
299- }
300-
301269TEST_F (TestRouteHandler, testGetShoulderLaneletsAtPose)
302270{
303271 set_route_handler (" overlap_map.osm" );
0 commit comments