Skip to content

Commit

Permalink
refactor(map_based_prediction): to improve readability. Possibly (unl…
Browse files Browse the repository at this point in the history
…ikely) performance improvements (#5261)

* refactor to improve readability. Possibly (unlikely) performance

Signed-off-by: Daniel Sanchez <[email protected]>

* Use ternary operator to make the code more readable

Signed-off-by: Daniel Sanchez <[email protected]>

Co-authored-by: Takamasa Horibe <[email protected]>

* Add const to curr lanelets and pred. object crosswalk

Signed-off-by: Daniel Sanchez <[email protected]>

* remove redundant breaks in switch table

Signed-off-by: Daniel Sanchez <[email protected]>

* change magic numbers to autoware function kph -> mps

Signed-off-by: Daniel Sanchez <[email protected]>

* simplify code by returning on false condition, change ifelse to switch

Signed-off-by: Daniel Sanchez <[email protected]>

---------

Signed-off-by: Daniel Sanchez <[email protected]>
Co-authored-by: Takamasa Horibe <[email protected]>
  • Loading branch information
danielsanchezaran and TakaHoribe authored Oct 17, 2023
1 parent 86a5954 commit c65bccd
Showing 1 changed file with 156 additions and 166 deletions.
Loading

0 comments on commit c65bccd

Please sign in to comment.