Pose initialization keeps running via automatic_pose_initializer
#1750
Labels
component:localization
Vehicle's position determination in its environment. (auto-assigned)
type:bug
Software flaws or errors.
Checklist
Description
automatic_pose_initializer
, which was recently added to autoware.universe in #1431, keeps running the pose initialization request under certain condition. The condition is that thetimer_
period is set lower than the time it takes to calculate the pose initialization.The default value
rclcpp::Rate(1.0)
works fine on my PC, but for example by setting this value torclcpp::Rate(3.0)
, the pose initialization request keep running.infinite_pose_initialization-2022-09-01_10.26.56.mp4
Expected behavior
The
automatic_pose_initializer
should run only one single successful pose initialization request.Actual behavior
As mentioned above, the package keeps running the initialization when the rate is set high enough.
Steps to reproduce
As mentioned above, in l.29 from
system/default_ad_api_helpers/automatic_pose_initializer/src/automatic_pose_initializer.cpp
change the value
1.0
to some higher value, e.g.3.0
.Versions
Possible causes
It is possible that the
sub_state_
is blocked bytimer_
and cannot update thestate_.state
fromUNINITIALIZED
toINITIALIZING
orINITIALIZED
.Additional context
No response
The text was updated successfully, but these errors were encountered: