Skip to content
Snippets Groups Projects

Remove laser scanner features memory

4 files
+ 197
14
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -69,15 +69,23 @@ void GamepadUnit::onConnectComponent()
ARMARX_INFO << deactivateSpam(100000, std::to_string(dataTimestamp->getTimestamp())) << "No new signal from gamepad for " << age.toMilliSecondsDouble() << " milliseconds. Not sending data. Timeout: " << getProperty<int>("PublishTimeout").getValue() << " ms";
}
}, 30);
sendTask->start();
ARMARX_TRACE;
openGamepadConnection();
}
void GamepadUnit::vibrate(const ::Ice::Current&)
{
ARMARX_INFO << "vibration!";
js.executeEffect();
}
bool GamepadUnit::openGamepadConnection()
{
if (js.open(deviceName))
{
ARMARX_TRACE;
ARMARX_INFO << "opened a gamepad named " << js.name << " with " << js.numberOfAxis << " axis and " << js.numberOfButtons << " buttons.";
if (js.numberOfAxis == 8 && js.numberOfButtons == 11)
@@ -185,4 +193,3 @@ armarx::PropertyDefinitionsPtr GamepadUnit::createPropertyDefinitions()
return armarx::PropertyDefinitionsPtr(new GamepadUnitPropertyDefinitions(
getConfigIdentifier()));
}
Loading