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(accel_map_calibrator): publish estimated covariance #2551

Merged

Conversation

td12321
Copy link
Contributor

@td12321 td12321 commented Dec 21, 2022

Description

In order to see the quality of the calibration data, the variance (standard deviation) on each cell is calculated and published.
Note that the calculation of the standard deviation depends on the update algorithm (with a four-cell method, one data point effects on four cells stddev.).

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.

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.

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

@td12321 td12321 requested review from tkimura4, a team, yukkysaito and yukke42 as code owners December 21, 2022 07:11
@github-actions github-actions bot added type:ci Continuous Integration (CI) processes and testing. (auto-assigned) type:documentation Creating or refining documentation. (auto-assigned) component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:vehicle Vehicle-specific implementations, drivers, packages. (auto-assigned) labels Dec 21, 2022
@TakaHoribe TakaHoribe force-pushed the feature/map_calibrator_covariance_pub branch from 415816c to e1a709b Compare December 21, 2022 07:13
@github-actions github-actions bot removed type:documentation Creating or refining documentation. (auto-assigned) component:perception Advanced sensor data processing and environment understanding. (auto-assigned) type:ci Continuous Integration (CI) processes and testing. (auto-assigned) labels Dec 21, 2022
@TakaHoribe TakaHoribe changed the title Feature/map calibrator covariance pub feat(accel_map_calibrator): publish estimated covariance Dec 21, 2022
@yukke42 yukke42 removed their request for review December 21, 2022 07:17
@codecov
Copy link

codecov bot commented Dec 21, 2022

Codecov Report

Base: 11.67% // Head: 11.61% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (ccf743d) compared to base (097228f).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2551      +/-   ##
==========================================
- Coverage   11.67%   11.61%   -0.06%     
==========================================
  Files        1314     1314              
  Lines       91508    91940     +432     
  Branches    24366    24366              
==========================================
  Hits        10679    10679              
- Misses      69679    70111     +432     
  Partials    11150    11150              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 11.67% <0.00%> (ø) Carriedforward from 097228f

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

Impacted Files Coverage Δ
...map_calibrator/accel_brake_map_calibrator_node.hpp 0.00% <ø> (ø)
...calibrator/src/accel_brake_map_calibrator_node.cpp 0.00% <0.00%> (ø)

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 requested review from TakaHoribe and removed request for yukkysaito December 21, 2022 07:42
@@ -152,6 +160,19 @@ AccelBrakeMapCalibrator::AccelBrakeMapCalibrator(const rclcpp::NodeOptions & nod
std::copy(accel_map_value_.begin(), accel_map_value_.end(), update_accel_map_value_.begin());
std::copy(brake_map_value_.begin(), brake_map_value_.end(), update_brake_map_value_.begin());

// inialize matrix for covariance calculation
{
const auto genConstMat = [](const Map & map, const auto val) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Map -> raw_vehicle_cmd_converter::Map

Copy link
Contributor

Choose a reason for hiding this comment

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

addressed here ccf743d

@TakaHoribe TakaHoribe force-pushed the feature/map_calibrator_covariance_pub branch from bf09503 to ccf743d Compare January 28, 2023 07:45
@TakaHoribe TakaHoribe enabled auto-merge (squash) January 28, 2023 07:45
@TakaHoribe TakaHoribe merged commit bac20ee into autowarefoundation:main Jan 28, 2023
@TakaHoribe TakaHoribe deleted the feature/map_calibrator_covariance_pub branch January 28, 2023 08:09
maxime-clem pushed a commit to maxime-clem/autoware.universe that referenced this pull request Jan 30, 2023
…ndation#2551)

* add calcuration of data covariance for 4cell-calibration.

* add publisher for offset_covariance.

* fix publisher of offset_covariance.

* refactor code

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

* change publisher variance to standard deviation.

* fix error

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

---------

Signed-off-by: takahoribe <horibe.takamasa@gmail.com>
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Co-authored-by: takahoribe <horibe.takamasa@gmail.com>
lexavtanke pushed a commit to lexavtanke/autoware.universe that referenced this pull request Jan 31, 2023
…ndation#2551)

* add calcuration of data covariance for 4cell-calibration.

* add publisher for offset_covariance.

* fix publisher of offset_covariance.

* refactor code

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

* change publisher variance to standard deviation.

* fix error

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

---------

Signed-off-by: takahoribe <horibe.takamasa@gmail.com>
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Co-authored-by: takahoribe <horibe.takamasa@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
asana17 pushed a commit to asana17/autoware.universe that referenced this pull request Feb 8, 2023
…ndation#2551)

* add calcuration of data covariance for 4cell-calibration.

* add publisher for offset_covariance.

* fix publisher of offset_covariance.

* refactor code

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

* change publisher variance to standard deviation.

* fix error

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

---------

Signed-off-by: takahoribe <horibe.takamasa@gmail.com>
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Co-authored-by: takahoribe <horibe.takamasa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:vehicle Vehicle-specific implementations, drivers, packages. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants