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(freespace_planner): add off-track test #3593

Merged

Conversation

TakaHoribe
Copy link
Contributor

@TakaHoribe TakaHoribe commented Apr 29, 2023

Description

Add a test to check the node will not die when the ego-vehicle pose is located far from the target trajectory.

Related links

#3587 needs to be merged before.

Tests performed

run colcon test.

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.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Apr 29, 2023
@kyoichi-sugahara
Copy link
Contributor

kyoichi-sugahara commented May 1, 2023

colcon test fail

// test for normal route
ASSERT_NO_THROW(test_manager->testWithBehaviorNominalRoute(test_target_node));
EXPECT_GE(test_manager->getReceivedTopicNum(), 1);

Copy link
Contributor

Choose a reason for hiding this comment

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

@TakaHoribe

test_manager->setInitialPoseTopicName("freespace_planner/input/odometry");

is necessary to define input_initial_pose_name_
And with this change, colcon test passed

Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara May 1, 2023

Choose a reason for hiding this comment

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

test_manager->setInitialPoseTopicName("freespace_planner/input/odometry");

is better to be in generateTestManager()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you. Addressed in 1d029c4

@TakaHoribe TakaHoribe force-pushed the add-off-track-test-freespace_planner branch from 8c9a388 to 708759d Compare May 5, 2023 02:06
@TakaHoribe TakaHoribe enabled auto-merge (squash) May 5, 2023 02:24
@TakaHoribe TakaHoribe merged commit 01fe072 into autowarefoundation:main May 5, 2023
@TakaHoribe TakaHoribe deleted the add-off-track-test-freespace_planner branch May 5, 2023 02:45
Mingyu1991 pushed a commit to Mingyu1991/autoware.universe that referenced this pull request Jun 26, 2023
* test(freespace_planner): add off-track test

Signed-off-by: Takamasa Horibe <[email protected]>

* add initialpose topic name initialization

Signed-off-by: Takamasa Horibe <[email protected]>

---------

Signed-off-by: Takamasa Horibe <[email protected]>
Signed-off-by: Mingyu Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants