Skip to content

Commit

Permalink
Update of initial rotation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakubach committed Nov 13, 2024
1 parent 14fa7ec commit 36d7db6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nav2_docking/opennav_docking/src/docking_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void DockingServer::dockRobot()
while (rclcpp::ok()) {
try {
// Perform pure rotation to dock orientation
if(initial_rotation_){
if(backward_blind_){
rotateToDock();
}

Expand Down Expand Up @@ -773,9 +773,6 @@ DockingServer::dynamicParametersCallback(std::vector<rclcpp::Parameter> paramete
if (name == "dock_backwards") {
dock_backwards_ = parameter.as_bool();
}
if (name == "initial_rotation") {
initial_rotation_ = parameter.as_bool();
}
if (name == "backward_blind") {
backward_blind_ = parameter.as_bool();
initial_rotation_ = parameter.as_bool();
Expand Down

0 comments on commit 36d7db6

Please sign in to comment.