Skip to content

Commit 0ed7cb3

Browse files
authored
Fix timeout calculation if solution callback fails (#73)
1 parent 5b6dffc commit 0ed7cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pick_ik_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class PickIKPlugin : public kinematics::KinematicsBase {
303303
done_optimizing = true;
304304
} else {
305305
robot_.set_random_valid_configuration(init_state);
306-
remaining_timeout -= total_optim_time.count();
306+
remaining_timeout = timeout - total_optim_time.count();
307307
}
308308
}
309309

0 commit comments

Comments
 (0)