Commit ffd9f60 1 parent 1764633 commit ffd9f60 Copy full SHA for ffd9f60
File tree 1 file changed +2
-2
lines changed
planning/obstacle_cruise_planner/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -803,12 +803,12 @@ void ObstacleCruisePlannerNode::updateHasStopped(std::vector<TargetObstacle> & t
803
803
});
804
804
const bool has_already_stopped = (itr != prev_target_obstacles_.end ()) && itr->has_stopped ;
805
805
if (has_already_stopped) {
806
- if (std::abs ( obstacle.velocity ) < obstacle_velocity_threshold_from_stop_to_cruise_) {
806
+ if (obstacle.velocity < obstacle_velocity_threshold_from_stop_to_cruise_) {
807
807
obstacle.has_stopped = true ;
808
808
continue ;
809
809
}
810
810
} else {
811
- if (std::abs ( obstacle.velocity ) < obstacle_velocity_threshold_from_cruise_to_stop_) {
811
+ if (obstacle.velocity < obstacle_velocity_threshold_from_cruise_to_stop_) {
812
812
obstacle.has_stopped = true ;
813
813
continue ;
814
814
}
You can’t perform that action at this time.
0 commit comments