Skip to content

Commit

Permalink
Fix map-integration intersection scene
Browse files Browse the repository at this point in the history
Fix: ad_rss_map_integration don't shorten route too much within
intersections when incoming route starts at intersection entry while
vehicle already entered.

* Update map to v2.4.5_hotfix
  • Loading branch information
berndgassmann committed Aug 31, 2021
1 parent d937f16 commit b713d7c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ad_rss_map_integration/impl/src/RssSceneCreation.cpp
Expand Up @@ -157,7 +157,8 @@ bool RssSceneCreation::appendStructuredScenes(::ad::rss::map::RssSceneCreator &s
{
// for the analysis we are only interested in the near term route
auto shortenedRoute = egoRouteInput;
::ad::map::route::shortenRouteToDistance(shortenedRoute, predictionLength);
::ad::map::route::shortenRouteToDistance(shortenedRoute,
std::max(predictionLength, ::ad::physics::Distance(100.)));
egoPredictedRoutes.push_back(shortenedRoute);
}

Expand Down
2 changes: 1 addition & 1 deletion ad_rss_map_integration/python/tests/interface_test.py
Expand Up @@ -189,7 +189,7 @@ def test_interface(self):
longitudinal_distance = rss_situation_snapshot.situations[0].relativePosition.longitudinalDistance

self.assertTrue(rss_proper_response.isSafe)
self.assertEqual(longitudinal_distance, ad.physics.Distance(104.411))
self.assertEqual(longitudinal_distance, ad.physics.Distance(104.415))

self.world_model.timeIndex += 1

Expand Down
1 change: 1 addition & 0 deletions doc/CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@

#### :ghost: Maintenance
* Fix: Consider lateral fluctuation margin correctly.
* Fix: ad_rss_map_integration don't shorten route too much within intersections
* Updated ad_map_access to v2.4.5
* Use target python version for build
* Fix: Ensure maxSpeedOnAcceleration only limits the actual acceleration while reponse time.
Expand Down

0 comments on commit b713d7c

Please sign in to comment.