Go to the documentation of this file.
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>
49 defineOptionalProperty<std::string>(
50 "PlatformUnitName",
"Armar6IcePlatformUnit",
"Name of the platform unit to use");
51 defineOptionalProperty<std::string>(
52 "GamepadTopicName",
"GamepadValues",
"Name of the Gamepad Topic");
53 defineOptionalProperty<float>(
"ScaleX", 1000.0f,
"scaling factor in mm per second");
54 defineOptionalProperty<float>(
"ScaleY", 1000.0f,
"scaling factor in mm per second");
55 defineOptionalProperty<float>(
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,
133 const TimestampBasePtr& timestamp,
134 const Ice::Current&
c)
override;
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onInitComponent() override
void reportGamepadState(const std::string &device, const std::string &name, const GamepadData &data, const TimestampBasePtr ×tamp, const Ice::Current &c) override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onExitComponent() override
void onDisconnectComponent() override
std::string getDefaultName() const override
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Default component property definition container.
GamepadControlUnitPropertyDefinitions(std::string prefix)
Brief description of class GamepadControlUnit.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void onConnectComponent() override