Skip to content
Snippets Groups Projects
Commit a3e0c32a authored by Mirko Wächter's avatar Mirko Wächter
Browse files

VelocityControllerHelper: make use of new robotunit function to remove and delete controllers

parent 48f82c69
No related branches found
No related tags found
No related merge requests found
......@@ -79,13 +79,5 @@ void VelocityControllerHelper::setNullSpaceControl(bool enabled)
void VelocityControllerHelper::cleanup()
{
controller->deactivateController();
if (controllerCreated)
{
while (controller->isControllerActive())
{
TimeUtil::SleepMS(1);
}
controller->deleteController();
}
controller->deactivateAndDeleteController();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment