wheel_base
is not initialized for AnalyticalJerkConstrainedSmoother
in BehaviorVelocityPlannerNode
#6915
Closed
3 tasks done
Labels
component:control
Vehicle control algorithms and mechanisms. (auto-assigned)
component:planning
Route planning, decision-making, and navigation. (auto-assigned)
type:bug
Software flaws or errors.
Checklist
Description
According to the code in
autoware.universe/planning/behavior_velocity_planner/node.cpp
, anAnalyticalJerkConstrainedSmoother
is created by callingonParam()
in the constructor of the node.However, nowhere is calling
setWheelBase
, leading thebase_param_.wheel_base
in the smoother to be uninitialized.base_param_.wheel_base
is accessed inapplySteeringRateLimit
method. The smoother inBehaviorVelocityPlanner
can reach this method when executingbehavior_velocity_intersection_module
and callingcheckCollision
method inscene_intersection.cpp
. The call chain ischeckCollision -> util::calcIntersectionPassingTime -> smoothPath -> applySteeringRateLimit
.This should be a BUG and can be corrected by initializing
wheel_base
somewhere.Expected behavior
base_param_.wheel_base
is initialized afterAnalyticalJerkConstrainedSmoother
being constructed inautoware.universe/planning/behavior_velocity_planner/node.cpp (onParam)
Actual behavior
AnalyticalJerkConstrainedSmoother
is constructed without any initialization inautoware.universe/planning/behavior_velocity_planner/node.cpp (onParam)
Steps to reproduce
Check the call chain
checkCollision -> util::calcIntersectionPassingTime -> smoothPath -> applySteeringRateLimit
by seeing the sources:autoware.universe/planning/behavior_velocity_planner/node.cpp
(AnalyticalJerkConstrainedSmoother
is created inonParam()
)autoware.universe/planning/behavior_velocity_intersection_module/src/scene_intersection.cpp
(definescheckCollision
called bymodifyPathVelocityDetail <- modifyPathVelocity
)autoware.universe/planning/behavior_velocity_intersection_module/src/util.cpp
(definesutil::calcIntersectionPassingTime
)autoware.universe/planning/motion_velocity_smoother/src/smoother/smoother_base.cpp
(definesapplySteeringRateLimit
)Versions
No response
Possible causes
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: