RJD-1505 Change sign of slope acceleration #1509
Open
+8
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Abstract
This pull request introduces a fix for sign of slope acceleration when consider_acceleration_by_road_slope is set to
true
.Details
When consider_acceleration_by_road_slope was set to
true
some scenarios were failing.This was primarily because of wrong calculation of actual acceleration, slope acceleration sign was sometimes changed by multiplying it by gear sign, when slope acceleration value was already properly signed.
Second problem was
CanonicalizedEntityStatus::getLaneletPose
method throwing exception because slope acceleration was tried to calculate even when lane matching was not successful. This was fixed by checking lane matching before slope acceleration is calculated, and removingnoexcept
operator.Code Changes
EgoEntitySimulation
CanonicalizedEntityStatus
noexcept
was removed fromgetLaneletId
andgetLaneletPose
as those two methods can actually throwcommon::SemanticError
References
Internal link 1
Destructive Changes
--
Known Limitations
--