forked from tier4/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(avoidance_module): change implementation to lambda (tier4#486)
* refactor(avoidance_module): change implementation to lambda In the generateExtendedDrivableArea function, the implementation to extend drivable areas with reference to object is refactor to lambda. This will allow the function to be used for some future planned updates. The refactor doesn't affect the behavior of the avoidance_module. Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * refactor: add default flag to extend_to_opposite side By default, the parameter is true, therefore it doesn't affect the original behavior. Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * ci(pre-commit): autofix * fix: rework function for better extension Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * refactor(route handler, avoidance_module): move the implementation The implementation is made into function and moved into route handler Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Refactor: convert lambdas to function Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * chore: add comments for comments for documentation in the header file Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Refactor: local variable rename Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * refactor: make a wrapper function to get furthest linestrings Also modified some avoidance_module to include the refactored functions Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
158 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters