Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(mrm_emergency_stop_operator): rework parameter #8937

Conversation

prakash-kannaiah
Copy link
Contributor

Description


Implement the ROS Node configuration layout described in Autoware Foundation Discussion #3371 for the mrm_emergency_stop_operator package.

  • Remove duplication of parameter declaration between the source code and the parameter file.
  • Remove the default value from the source code to ensure all parameter values are passed from the parameter files.
  • Use types that match those returned from declare_parameter() to prevent confusion and potential coding errors.
  • Move the default parameter file to a standardized location. Use the JSON Schema for that.

Tests performed


No.

Pre-review checklist for the PR author


The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers


The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author


The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone with write access can merge the PR.

@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:system System design and integration. (auto-assigned) labels Sep 21, 2024
Copy link

github-actions bot commented Sep 21, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

prakash-kannaiah and others added 25 commits October 9, 2024 10:36
Signed-off-by: prakash-kannaiah <[email protected]>
…ion#8939)

fix(compare_map_filter): typo bug fix

Signed-off-by: badai-nguyen <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…o existence probability update (autowarefoundation#8864)

fix: add existence probability update, refactoring

Signed-off-by: Taekjin LEE <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…dation#8929)

* feat: delete-system-error-monitor-from-autoware

Signed-off-by: TetsuKawa <[email protected]>

* feat: remove unnecessary params

---------

Signed-off-by: TetsuKawa <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…ation#8921)

fix:unmatchedSuppression

Signed-off-by: kobayu858 <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
* refactor(ad_api_adaptors): rework parameter

* <refactor(ad_api_adaptors): rework parameter>

* ad_api_adaptors.schema.json

* style(pre-commit): autofix

* refactor(ad_api_adaptors): rework parameter

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: prakash-kannaiah <[email protected]>
)

* chore(compare_map_segmentation): add test for voxel_based_compare_map_filter

Signed-off-by: badai-nguyen <[email protected]>

* feat: add test for other compare map filter

Signed-off-by: badai-nguyen <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: badai-nguyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: prakash-kannaiah <[email protected]>
…owarefoundation#8950)

add missing params

Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…foundation#8909)

* refactor lane change utility funcions

Signed-off-by: mohammad alqudah <[email protected]>

* LC utility function to get distance to next regulatory element

Signed-off-by: mohammad alqudah <[email protected]>

* don't activate LC module when close to regulatory element

Signed-off-by: mohammad alqudah <[email protected]>

* modify threshold distance calculation

Signed-off-by: mohammad alqudah <[email protected]>

* move regulatory element check to canTransitFailureState() function

Signed-off-by: mohammad alqudah <[email protected]>

* always run LC module if approaching terminal point

Signed-off-by: mohammad alqudah <[email protected]>

* use max possible LC length as threshold

Signed-off-by: mohammad alqudah <[email protected]>

* update LC readme

Signed-off-by: mohammad alqudah <[email protected]>

* refactor implementation

Signed-off-by: mohammad alqudah <[email protected]>

* update readme

Signed-off-by: mohammad alqudah <[email protected]>

* refactor checking data validity

Signed-off-by: mohammad alqudah <[email protected]>

* refactor sampling of prepare phase metrics and lane changing phase metrics

Signed-off-by: mohammad alqudah <[email protected]>

* add route handler function to get pose from 2d arc length

Signed-off-by: mohammad alqudah <[email protected]>

* refactor candidate path generation

Signed-off-by: mohammad alqudah <[email protected]>

* refactor candidate path safety check

Signed-off-by: mohammad alqudah <[email protected]>

* fix variable name

Signed-off-by: mohammad alqudah <[email protected]>

* Update planning/autoware_route_handler/src/route_handler.cpp

Co-authored-by: Zulfaqar Azmi <[email protected]>

* correct parameter name

Signed-off-by: mohammad alqudah <[email protected]>

* set prepare segment velocity after taking max path velocity value

Signed-off-by: mohammad alqudah <[email protected]>

* update LC README

Signed-off-by: mohammad alqudah <[email protected]>

* minor changes

Signed-off-by: mohammad alqudah <[email protected]>

* check phase length difference with previos valid candidate path

Signed-off-by: mohammad alqudah <[email protected]>

* change logger name

Signed-off-by: mohammad alqudah <[email protected]>

* change functions names to snake case

Signed-off-by: mohammad alqudah <[email protected]>

* use snake case for function names

Signed-off-by: mohammad alqudah <[email protected]>

* add colors to flow chart in README

Signed-off-by: mohammad alqudah <[email protected]>

---------

Signed-off-by: mohammad alqudah <[email protected]>
Co-authored-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
* remove header file according to clangd warning

Signed-off-by: Go Sakayori <[email protected]>

* add test

Signed-off-by: Go Sakayori <[email protected]>

* fix

Signed-off-by: Go Sakayori <[email protected]>

* add test for get function

Signed-off-by: Go Sakayori <[email protected]>

* apply clang tidy

Signed-off-by: Go Sakayori <[email protected]>

* fix test content

Signed-off-by: Go Sakayori <[email protected]>

---------

Signed-off-by: Go Sakayori <[email protected]>
Signed-off-by: Go Sakayori <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…efoundation#8918)

fix:unmatchedSuppression

Signed-off-by: kobayu858 <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…utowarefoundation#8592)

* add find_farthest()

Signed-off-by: mitukou1109 <[email protected]>

* add simplify()

Signed-off-by: mitukou1109 <[email protected]>

* add envelope()

Signed-off-by: mitukou1109 <[email protected]>

* (WIP) add buffer()

Signed-off-by: mitukou1109 <[email protected]>

* add Polygon2d class

Signed-off-by: mitukou1109 <[email protected]>

* change input type of envelope()

Signed-off-by: mitukou1109 <[email protected]>

* disable convexity check until correct() supports non-convex polygons

Signed-off-by: mitukou1109 <[email protected]>

* add is_clockwise()

Signed-off-by: mitukou1109 <[email protected]>

* make correct() support non-convex polygons

Signed-off-by: mitukou1109 <[email protected]>

* fix test case

Signed-off-by: mitukou1109 <[email protected]>

* Revert "(WIP) add buffer()"

This reverts commit 123b0ba.

Signed-off-by: mitukou1109 <[email protected]>

---------

Signed-off-by: mitukou1109 <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…n the search area (autowarefoundation#8591)

* refactor PR

Signed-off-by: ismetatabay <[email protected]>

* WIP

Signed-off-by: ismetatabay <[email protected]>

* change using polygon to lateral offset

Signed-off-by: ismetatabay <[email protected]>

* improve code

Signed-off-by: ismetatabay <[email protected]>

* remove redundant code

Signed-off-by: ismetatabay <[email protected]>

* skip close points in MPC path generation

Signed-off-by: ismetatabay <[email protected]>

* fix empty path points in short parking scenario

Signed-off-by: ismetatabay <[email protected]>

* fix readme conflicts

Signed-off-by: ismetatabay <[email protected]>

---------

Signed-off-by: ismetatabay <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…efoundation#8955)

remove redundant calculation

Signed-off-by: Go Sakayori <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…utowarefoundation#8960)

* fix:unusedFunction

Signed-off-by: kobayu858 <[email protected]>

* fix:unusedFunction

Signed-off-by: kobayu858 <[email protected]>

* fix:unusedFunction

Signed-off-by: kobayu858 <[email protected]>

* fix:pre_commit

Signed-off-by: kobayu858 <[email protected]>

---------

Signed-off-by: kobayu858 <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
fix:suppressions

Signed-off-by: kobayu858 <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…warefoundation#8962)

Add yoshiri and kotaro as code owners of feature remover

Signed-off-by: yoshiri <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
…ndex and column index for csv loader (autowarefoundation#8963)

swap row and column

Signed-off-by: Go Sakayori <[email protected]>
Signed-off-by: prakash-kannaiah <[email protected]>
@github-actions github-actions bot added component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) component:localization Vehicle's position determination in its environment. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) component:control Vehicle control algorithms and mechanisms. (auto-assigned) component:vehicle Vehicle-specific implementations, drivers, packages. (auto-assigned) type:ci Continuous Integration (CI) processes and testing. (auto-assigned) component:launch Launch files, scripts and initialization tools. (auto-assigned) component:common Common packages from the autoware-common repository. (auto-assigned) component:simulation Virtual environment setups and simulations. (auto-assigned) tag:require-cuda-build-and-test labels Oct 9, 2024
@prakash-kannaiah prakash-kannaiah deleted the refactor/mrm_emergency_stop_operator branch October 10, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned) component:control Vehicle control algorithms and mechanisms. (auto-assigned) component:launch Launch files, scripts and initialization tools. (auto-assigned) component:localization Vehicle's position determination in its environment. (auto-assigned) component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) component:simulation Virtual environment setups and simulations. (auto-assigned) component:system System design and integration. (auto-assigned) component:vehicle Vehicle-specific implementations, drivers, packages. (auto-assigned) tag:require-cuda-build-and-test type:ci Continuous Integration (CI) processes and testing. (auto-assigned) type:documentation Creating or refining documentation. (auto-assigned)
Projects
Development

Successfully merging this pull request may close these issues.