Skip to content

Commit

Permalink
Update nav2_graceful_controller/src/graceful_controller.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Macenski <[email protected]>
Signed-off-by: Michael Ferguson <[email protected]>
  • Loading branch information
mikeferguson and SteveMacenski authored Dec 17, 2024
1 parent 11c4b15 commit f3e9500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_graceful_controller/src/graceful_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ void GracefulController::validateOrientations(
if (path.empty()) {return;}

// Check if we actually need to add orientations
for (size_t i = 0; i < path.size() - 1; ++i) {
for (size_t i = 1; i < path.size() - 1; ++i) {
if (tf2::getYaw(path[i].pose.orientation) != 0.0) {return;}
}

Expand Down

0 comments on commit f3e9500

Please sign in to comment.