Closed nyxrobotics closed 1 year ago
VelocitySetPath::calcIntervalの引数のbeginがendより大きい
↓
VelocitySetPath::calcChangedVelocityの引数のrange.at(0)がrange.at(1)より大きい
↓
VelocitySetPath::changeWaypointsForDeceleration
で発生
https://github.com/sbgisen/autoware_ai_planning/blob/be56f15de2f670cb808a4ba1e16ee4b92d70cdcc/waypoint_planner/src/velocity_set/velocity_set_path.cpp#L91
[ INFO] [1681196945.980337540, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 12 -> 8
[ WARN] [1681196945.980365066, 6149.463000000]: Invalid input index range: begin = 12, end = 8, PrevWaypointsSize = 200
[ INFO] [1681196945.980376581, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 11 -> 8
[ WARN] [1681196945.980385718, 6149.463000000]: Invalid input index range: begin = 11, end = 8, PrevWaypointsSize = 200
[ INFO] [1681196945.980394723, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 10 -> 8
[ WARN] [1681196945.980404308, 6149.463000000]: Invalid input index range: begin = 10, end = 8, PrevWaypointsSize = 200
[ INFO] [1681196945.980413492, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 9 -> 8
[ WARN] [1681196945.980424002, 6149.463000000]: Invalid input index range: begin = 9, end = 8, PrevWaypointsSize = 200
[ INFO] [1681196945.980434313, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 8 -> 8
[ INFO] [1681196945.980444497, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 7 -> 8
[ INFO] [1681196945.980459720, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 6 -> 8
[ INFO] [1681196945.980470018, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 5 -> 8
[ INFO] [1681196945.980481238, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 4 -> 8
[ INFO] [1681196945.980492010, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 3 -> 8
[ INFO] [1681196945.980502331, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 2 -> 8
[ INFO] [1681196945.980512963, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 1 -> 8
[ INFO] [1681196945.980523580, 6149.463000000]: VelocitySetPath::changeWaypointsForDeceleration -> calcChangedVelocity: 0 -> 8
[ INFO] [1681196945.980534243, 6149.463000000]: VelocitySetPath::avoidSuddenAcceleration -> calcChangedVelocity: 0 -> 0
このextraの4回分で発生しているようです 修正案↓ https://github.com/sbgisen/autoware_ai_planning/blob/be56f15de2f670cb808a4ba1e16ee4b92d70cdcc/waypoint_planner/src/velocity_set/velocity_set_path.cpp#L90 ↓
std::array<int, 2> range = {index, obstacle_waypoint + extra};
概要 asterでの回避動作中、下記のwarning
Invalid input index range
https://github.com/sbgisen/autoware_ai_planning/blob/be56f15de2f670cb808a4ba1e16ee4b92d70cdcc/waypoint_planner/src/velocity_set/velocity_set_path.cpp#L196デバッグ情報追加して表示すると下記→endがおかしいようです
再現手順 修正しないとどう困るか 原因 修正案