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

test(lane_departure_checker): add tests for calcTrajectoryDeviation(), calcMaxSearchLengthForBoundaries() #9029

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mitukou1109
Copy link
Contributor

Description

This PR adds tests for calcTrajectoryDeviation, calcMaxSearchLengthForBoundaries in the autoware_lane_departure_checker package.

How was this PR tested?

colcon test --packages-select autoware_lane_departure_checker --event-handlers console_cohesion+

gives the following result:

1: [----------] 3 tests from LaneDepartureCheckerTest/CalcMaxSearchLengthForBoundariesTest
1: [ RUN      ] LaneDepartureCheckerTest/CalcMaxSearchLengthForBoundariesTest.test_calc_max_search_length_for_boundaries/EmptyTrajectory
1: [       OK ] LaneDepartureCheckerTest/CalcMaxSearchLengthForBoundariesTest.test_calc_max_search_length_for_boundaries/EmptyTrajectory (1 ms)
1: [ RUN      ] LaneDepartureCheckerTest/CalcMaxSearchLengthForBoundariesTest.test_calc_max_search_length_for_boundaries/SinglePointTrajectory
1: [       OK ] LaneDepartureCheckerTest/CalcMaxSearchLengthForBoundariesTest.test_calc_max_search_length_for_boundaries/SinglePointTrajectory (0 ms)
1: [ RUN      ] LaneDepartureCheckerTest/CalcMaxSearchLengthForBoundariesTest.test_calc_max_search_length_for_boundaries/MultiPointTrajectory
1: [       OK ] LaneDepartureCheckerTest/CalcMaxSearchLengthForBoundariesTest.test_calc_max_search_length_for_boundaries/MultiPointTrajectory (0 ms)
1: [----------] 3 tests from LaneDepartureCheckerTest/CalcMaxSearchLengthForBoundariesTest (1 ms total)
1: 
1: [----------] 2 tests from LaneDepartureCheckerTest/CalcTrajectoryDeviationTest
1: [ RUN      ] LaneDepartureCheckerTest/CalcTrajectoryDeviationTest.test_calc_trajectory_deviation/EmptyTrajectory
1: [       OK ] LaneDepartureCheckerTest/CalcTrajectoryDeviationTest.test_calc_trajectory_deviation/EmptyTrajectory (0 ms)
1: [ RUN      ] LaneDepartureCheckerTest/CalcTrajectoryDeviationTest.test_calc_trajectory_deviation/SinglePointTrajectory
1: [       OK ] LaneDepartureCheckerTest/CalcTrajectoryDeviationTest.test_calc_trajectory_deviation/SinglePointTrajectory (0 ms)
1: [----------] 2 tests from LaneDepartureCheckerTest/CalcTrajectoryDeviationTest (0 ms total)

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Oct 4, 2024
Copy link

github-actions bot commented Oct 4, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@kyoichi-sugahara kyoichi-sugahara self-assigned this Oct 4, 2024
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants