Skip to content

Commit

Permalink
Fix distance remaining crash
Browse files Browse the repository at this point in the history
  • Loading branch information
redvinaa committed Sep 26, 2023
1 parent eac9497 commit afeb26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_bt_navigator/src/navigators/navigate_to_pose.cpp
Expand Up @@ -179,7 +179,7 @@ NavigateToPoseNavigator::onLoop()
}

// Add orientation difference to distance
if (current_angular_speed > 0.01) {
if (current_angular_speed > 0.01 && current_path.poses.size() > 0) {
tf2::Quaternion q(
current_pose.pose.orientation.x,
current_pose.pose.orientation.y,
Expand Down

0 comments on commit afeb26a

Please sign in to comment.