fix(traffic_simulator): set flag valid lanelet pose #1387
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I found a bug in ego respawn logic. The ego orientation is not set correctly and respawns with wrong pose.
movie-2024-09-18_08.59.17.mp4
Abstract
I analyzed bug and fixed it in this PR.
Background
I found this line was called even when I set map pose as ego's respawn pose. But I thought it was unexpected result because the new pose was substituted to
status.pose
in this case.scenario_simulator_v2/simulation/traffic_simulator/src/data_type/entity_status.cpp
Line 76 in 8d189b1
Details
I think we have to set flag
status.lanelet_pose_valid
tofalse
when we use map pose.After that ego respawns with correct pose.
movie-2024-09-18_09.25.24.mp4
References
https://github.com/tier4/sim_evaluation_tools/issues/343
Destructive Changes
N/A
Known Limitations
N/A