27#include <ArmarXCore/interface/components/EmergencyStopInterface.h>
29#include <RobotAPI/interface/components/RobotHealthInterface.h>
30#include <RobotAPI/interface/units/GamepadUnit.h>
31#include <RobotAPI/interface/units/HandUnitInterface.h>
32#include <RobotAPI/interface/units/PlatformUnitInterface.h>
50 "PlatformUnitName",
"Armar6IcePlatformUnit",
"Name of the platform unit to use");
52 "GamepadTopicName",
"GamepadValues",
"Name of the Gamepad Topic");
56 "ScaleAngle", 1.0f,
"scaling factor in radian per second");
82 return "GamepadControlUnit";
112 PlatformUnitInterfacePrx platformUnitPrx;
117 bool enableHeartBeat =
false;
121 EmergencyStopMasterInterfacePrx emergencyStop;
123 bool leftHandOpen =
true;
124 bool rightHandOpen =
true;
126 long leftHandTime = 0;
127 long rightHandTime = 0;
131 const std::string& name,
132 const GamepadData&
data,
134 const Ice::Current&
c)
override;
Default component property definition container.
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Baseclass for all ArmarX ManagedIceObjects requiring properties.
GamepadControlUnitPropertyDefinitions(std::string prefix)
void onInitComponent() override
void onDisconnectComponent() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectComponent() override
void reportGamepadState(const std::string &device, const std::string &name, const GamepadData &data, const TimestampBasePtr ×tamp, const Ice::Current &c) override
void onExitComponent() override
std::string getDefaultName() const override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.