-
Notifications
You must be signed in to change notification settings - Fork 650
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(vehicle_cmd_gate): fix publisher HZ in the unit test #6661
fix(vehicle_cmd_gate): fix publisher HZ in the unit test #6661
Conversation
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168 the updates look good, thanks. It seems the tests are still failing:
autoware.universe/control/vehicle_cmd_gate/test/src/test_filter_in_vehicle_cmd_gate_node.cpp Lines 258 to 264 in 38db8e9
It might make sense to just increase |
autoware.universe/control/vehicle_cmd_gate/test/src/test_filter_in_vehicle_cmd_gate_node.cpp Lines 236 to 239 in 38db8e9
In the current implementation, acceleration and jerk are calculated based on instantaneous measurements, leading to potential abrupt changes due to the high sensitivity to small fluctuations in data. Especially for these 1nd and 2rd order derivatives of speed. To achieve smoother and more reliable readings, I suggest averaging these values over a 20-30 ms window. This method will help reduce noise and better reflect the vehicle's dynamics, improving the test's reliability. |
@takayuki5168 -san, I've implemented this in:
I hope it works. (It is continued from your commit) |
Closing this since:
includes the changes in this PR and is merged. |
Description
Related to #6612.
Based on the following analysis and suggestion by @xmfcx, the unit test in the vehicle_cmd_gate uses more precise 100Hz publisher.
#6612 (comment)
Tests performed
Unit test
Effects on system behavior
Nothing
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.
After all checkboxes are checked, anyone who has write access can merge the PR.