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

fix: some fix on calibration_adapter and parameter_estimator #127

Merged

Conversation

KeiNakazato
Copy link
Contributor

Description

By this change, calibration_adapter will translate VelocityReport received from the vehicle interface into TwistStamped. This value is necessary for parameter_estimator to work well. Also, in the parameter estimating algorithm, I adjusted plus or minus sign of z-angular velocity received from IMU.

Related links

Tests performed

Notes for reviewers

Interface 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.

@KeiNakazato
Copy link
Contributor Author

In this commit, the TwistStamped published from calibration_adapter has the same value with the TwistStamped part of /sensing/vehicle_velocity_converter/twist_with_covariance published from /sensing/vehicle_velocity_converter (up to speed_scale_factor_ ). However, it is just a translation of /vehicle/status/velocity_status into TwistStamped type. Although I named the additional topic /calibration/vehicle/twist_status, the topic which parameter_estimator would subscribe was /vehicle/status/twist. So I wonder if it should have been modified such that the TwistStamped is directly published from /autoware_advc_interface... .

@Owen-Liuyuxuan Owen-Liuyuxuan self-requested a review October 4, 2024 05:38
Copy link
Contributor

@Owen-Liuyuxuan Owen-Liuyuxuan left a comment

Choose a reason for hiding this comment

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

I notice that there is a DCO error in the CI checks. Please follow https://github.com/autowarefoundation/autoware_tools/pull/127/checks?check_run_id=30904049078 and tackle with the errors.

@@ -30,7 +30,7 @@

class CalibrationAdapterNode : public CalibrationAdapterNodeBase
{
using Velocity = autoware_vehicle_msgs::msg::VelocityReport;
using VelocityReport = autoware_vehicle_msgs::msg::VelocityReport;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we changing the name of this class, is it necessary? Or you believe it is better to be called "velocityReport"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At that time I intended to follow the manner of autoware_advc_interface where VelocityReport seems preferred, but I missed that it is of the same type with Velocity. So now the updated version has cancelled all the relevant changes to avoid unpredictable errors.

@KeiNakazato KeiNakazato force-pushed the work_parameter_estimator branch 2 times, most recently from 0ec099d to 4ea500b Compare October 8, 2024 09:28
KeiNakazato and others added 3 commits October 8, 2024 18:35
@KeiNakazato KeiNakazato force-pushed the work_parameter_estimator branch from 8a97198 to 18679f3 Compare October 8, 2024 09:36
Copy link
Contributor

@Owen-Liuyuxuan Owen-Liuyuxuan left a comment

Choose a reason for hiding this comment

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

This works as expected and keep consistent with original codes.

@Owen-Liuyuxuan Owen-Liuyuxuan merged commit 5049ea7 into autowarefoundation:main Oct 25, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants