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

feat(autonomous_emergency_braking): add param update support for AEB #6956

Merged

Conversation

danielsanchezaran
Copy link
Contributor

Description

Add param update support (ie. rqt reconfigure) for the AEB module.

Note that the aeb_hz is not included on the paramUpdate list since it is directly linked to a Timer and I am not quite sure if is is possible to reset the timer like this:

{ // start time double aeb_hz{0.0}; const bool is_aeb_hz_updated = updateParam<double>(parameters, "aeb_hz", aeb_hz); if (is_aeb_hz_updated) { const auto period_ns = rclcpp::Rate(aeb_hz).period(); timer_.reset(); timer_ = rclcpp::create_timer(this, this->get_clock(), period_ns, std::bind(&AEB::onTimer, this)); } }

Without it causing troubles?

Related links

Tests performed

PSim + rqt_reconfigure

Notes for reviewers

Interface changes

ROS Topic Changes

ROS Parameter Changes

Effects on system behavior

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 who has write access can merge the PR.

Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label May 9, 2024
@danielsanchezaran danielsanchezaran marked this pull request as ready for review May 9, 2024 05:52
@danielsanchezaran danielsanchezaran added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label May 9, 2024
Copy link
Contributor

@soblin soblin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not allow the user to change aeb_hz, so you can keep this change

@danielsanchezaran danielsanchezaran merged commit 04faf5e into autowarefoundation:main May 10, 2024
31 of 33 checks passed
@danielsanchezaran danielsanchezaran deleted the feat/add-param-update-to-aeb branch May 10, 2024 04:51
vividf pushed a commit to vividf/autoware.universe that referenced this pull request May 16, 2024
…utowarefoundation#6956)

add param update support for AEB

Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Signed-off-by: vividf <yihsiang.fang@tier4.jp>
danielsanchezaran added a commit to tier4/autoware_universe that referenced this pull request May 17, 2024
…utowarefoundation#6956)

add param update support for AEB

Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
danielsanchezaran added a commit to tier4/autoware_universe that referenced this pull request May 22, 2024
…utowarefoundation#6956)

add param update support for AEB

Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…utowarefoundation#6956)

add param update support for AEB

Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:control Vehicle control algorithms and mechanisms. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants