Skip to content

Commit

Permalink
Fix timeout calculation if solution callback fails (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk authored Sep 30, 2024
1 parent 5b6dffc commit 0ed7cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pick_ik_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class PickIKPlugin : public kinematics::KinematicsBase {
done_optimizing = true;
} else {
robot_.set_random_valid_configuration(init_state);
remaining_timeout -= total_optim_time.count();
remaining_timeout = timeout - total_optim_time.count();
}
}

Expand Down

0 comments on commit 0ed7cb3

Please sign in to comment.