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

Add short delay before lookup transform in polygon test #4939

Merged
merged 2 commits into from
Mar 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nav2_collision_monitor/test/polygons_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,8 @@ TEST_F(Tester, testPolygonTopicUpdateDifferentFrame)

// Move BASE2_FRAME_ID to 0.2 m away from BASE_FRAME_ID
sendTransforms(0.2);
// sleep for a short time to make sure that the transform is published
std::this_thread::sleep_for(50ms);
// updatePolygon(vel) should update poly coordinates to correct ones in BASE_FRAME_ID
nav2_collision_monitor::Velocity vel{0.0, 0.0, 0.0};
polygon_->updatePolygon(vel);
Expand Down
Loading