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(vehicle_cmd_gate): enable filter with actual steer in manual mode #2717

Conversation

TakaHoribe
Copy link
Contributor

@TakaHoribe TakaHoribe commented Jan 23, 2023

Description

In manual mode, the filter must consider the current status (e.g. current steering angle) to prevent sudden movement when switching from manual to autonomous.
The current implementation only checks for the previous commands, which makes a large difference between the actual status and command, then results in the sudden movement of the steering and acceleration.

This PR only focuses on the steering behavior because longitudinal information can not be changed easily for other modules.

Related links

https://github.com/tier4/autoware_launch/pull/733
autowarefoundation/autoware_launch#189

Tests performed

Notes for reviewers

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.

…mode

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Jan 23, 2023
@TakaHoribe TakaHoribe changed the title feature(vehicle_cmd_gate): enable filter with actual steer in manual mode feat(vehicle_cmd_gate): enable filter with actual steer in manual mode Jan 23, 2023
@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Base: 11.57% // Head: 12.38% // Increases project coverage by +0.80% 🎉

Coverage data is based on head (54f6f60) compared to base (7451eb1).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2717      +/-   ##
==========================================
+ Coverage   11.57%   12.38%   +0.80%     
==========================================
  Files        1303     1203     -100     
  Lines       90775    85242    -5533     
  Branches    23978    24121     +143     
==========================================
+ Hits        10511    10558      +47     
+ Misses      69270    63671    -5599     
- Partials    10994    11013      +19     
Flag Coverage Δ *Carryforward flag
differential 18.63% <0.00%> (?)
total 12.35% <0.00%> (+0.77%) ⬆️ Carriedforward from 5687582

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp 0.40% <0.00%> (+0.09%) ⬆️
control/vehicle_cmd_gate/src/vehicle_cmd_gate.hpp 0.00% <ø> (ø)
...vehicle_model/sim_model_ideal_steer_acc_geared.cpp 80.95% <0.00%> (-7.15%) ⬇️
...erception/traffic_light_classifier/src/nodelet.cpp 0.00% <0.00%> (ø)
...rol/operation_mode_transition_manager/src/node.cpp 0.00% <0.00%> (ø)
...nclude/traffic_light_classifier/cnn_classifier.hpp
...rclcpp_components/node_main_tensorrt_yolo_node.cpp
...apollo_instance_segmentation/feature_generator.hpp
...endor/_deps/tensorrt-src/samples/common/logger.cpp
... and 100 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@TakaHoribe TakaHoribe marked this pull request as ready for review January 24, 2023 10:28
@TakaHoribe TakaHoribe requested review from tkimura4 and a team as code owners January 24, 2023 10:28
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
@TakaHoribe TakaHoribe force-pushed the feature/vehicle-cmd-gate-actual-jerk-filter branch from 82b7c40 to 9c3518f Compare January 24, 2023 10:30
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
@github-actions github-actions bot added the component:launch Launch files, scripts and initialization tools. (auto-assigned) label Jan 24, 2023
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Copy link
Contributor

@tkimura4 tkimura4 left a comment

Choose a reason for hiding this comment

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

LGTM.

@TakaHoribe TakaHoribe merged commit ab0e97a into autowarefoundation:main Feb 20, 2023
@TakaHoribe TakaHoribe deleted the feature/vehicle-cmd-gate-actual-jerk-filter branch February 20, 2023 05:24
nabetetsu pushed a commit to xygyo77/autoware.universe that referenced this pull request Mar 1, 2023
autowarefoundation#2717)

* feature(vehicle_cmd_gate): enable filter with actual steer in manual mode

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* update parameters based on experiment

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* update launch

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* update param

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

---------

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
1222-takeshi pushed a commit to 1222-takeshi/autoware.universe that referenced this pull request Mar 6, 2023
autowarefoundation#2717)

* feature(vehicle_cmd_gate): enable filter with actual steer in manual mode

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* update parameters based on experiment

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* update launch

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* update param

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

---------

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
rej55 pushed a commit to tier4/autoware.universe that referenced this pull request May 8, 2023
autowarefoundation#2717)

* feature(vehicle_cmd_gate): enable filter with actual steer in manual mode

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* update parameters based on experiment

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* update launch

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* update param

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

---------

Signed-off-by: Takamasa Horibe <horibe.takamasa@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) component:launch Launch files, scripts and initialization tools. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants