Commit 6e03cfe7 authored by Paul Rouanet's avatar Paul Rouanet
Browse files

Modif stop()

parent ed4a8b3d
......@@ -495,7 +495,6 @@ return_type SystemBoltHardware::stop()
std::chrono::time_point<std::chrono::system_clock> last = std::chrono::system_clock::now();
while (!robot_->IsTimeout()) {
if (((std::chrono::duration<double>)(std::chrono::system_clock::now()-last)).count() > 0.001) {
last = std::chrono::system_clock::now(); // last+dt would be better
......@@ -506,8 +505,6 @@ return_type SystemBoltHardware::stop()
}
robot_->joints->SetTorques(torques);
}
robot_->SendCommand();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment