Skip to content
Snippets Groups Projects
Commit fbc614ab authored by Stefan Reither's avatar Stefan Reither
Browse files

KITHandUnit: fixes timing problem when sending commands too fast, fixes...

KITHandUnit: fixes timing problem when sending commands too fast, fixes shutdown from scenarioManager and shutdown for lost device
parent 04d8187d
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,6 @@ namespace armarx
addShapeName("G7");
addShapeName("G8");
// KITHand::INIT_LOG
_driver = std::make_unique<KITHandCommunicationDriver>();
_driver->registerConnectionStateChangedCallback(std::bind(&KITHandUnit::connectionStateChangedCallback, this, std::placeholders::_1));
}
......@@ -87,6 +86,7 @@ namespace armarx
{
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
found = true;
//gui
createOrUpdateRemoteGuiTab(buildGui(), [this](RemoteGui::TabProxy & prx)
......@@ -163,6 +163,7 @@ namespace armarx
{
ARMARX_WARNING << "Invalid HandJointName '" << pair.first << "', ignoring.";
}
_driver->waitForCommunicationMedium();
}
}
......@@ -198,7 +199,6 @@ namespace armarx
{
if (state == State::DeviceLost)
{
_driver.reset();
getArmarXManager()->asyncShutdown();
}
}
......
......@@ -82,7 +82,6 @@ namespace armarx
void connectionStateChangedCallback(const KITHand::State state);
RemoteGui::WidgetPtr buildGui();
void processGui(RemoteGui::TabProxy& prx);
......
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