Replies: 1 comment
-
@soblin is working on the issue. Will create a PR later. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello planning maintainers!
I have found through flamegraph that the
computeCollisionIndexes
is the latency bottleneck in behavior_path_planner module.Especially,
discretizeAngle
function is the main cause of the heavy latency.Here, I have one question:
In
addIndex2d
function below,pose_local
is passed topose2index
function.https://github.com/autowarefoundation/autoware.universe/blob/0ddcca1cdd3a41ef9cc5452d71ea6a350ec89dc2/planning/behavior_path_planner_common/src/utils/occupancy_grid_based_collision_detector/occupancy_grid_based_collision_detector.cpp#L138
This
addIndex2d
is used many times soon after defined:The
pose2index
is defined here:https://github.com/autowarefoundation/autoware.universe/blob/0ddcca1cdd3a41ef9cc5452d71ea6a350ec89dc2/planning/behavior_path_planner_common/src/utils/occupancy_grid_based_collision_detector/occupancy_grid_based_collision_detector.cpp#L34
My question is that where the
pose_local.orientation
is defined and is it needed to calculateindex_theta
?If the value
pose_local.orientation
is always the same in thosepose2index
calls inaddIndex2d
, then I think we can delete the redundantdiscretizeAngle
calls and make a lot of performance improvement!!Thank you for reading.
Beta Was this translation helpful? Give feedback.
All reactions