Go to the documentation of this file.
25 #include<linux/joystick.h>
35 #include <RobotAPI/interface/units/GamepadUnit.h>
54 defineOptionalProperty<std::string>(
"GamepadTopicName",
"GamepadValues",
"Name of the Gamepad Topic");
55 defineOptionalProperty<std::string>(
"GamepadDeviceName",
"/dev/input/js2",
"device that will be opened as a gamepad");
56 defineOptionalProperty<std::string>(
"GamepadForceFeedbackName",
"",
"device that will be used for force feedback, leave empty to disable. See RobotAPI/source/RobotAPI/drivers/GamepadUnit/README.md for more details.");
57 defineOptionalProperty<int>(
"PublishTimeout", 2000,
"In Milliseconds. Timeout after which the gamepad data is not published after, if no new data was read from the gamepad");
74 virtual public GamepadUnitInterface
113 void vibrate(const ::Ice::Current& = ::Ice::emptyCurrent)
override;
116 GamepadUnitListenerPrx topicPrx;
122 std::string deviceName;
123 std::string deviceEventName;
std::string getDefaultName() const override
void onDisconnectComponent() override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onExitComponent() override
void vibrate(const ::Ice::Current &=::Ice::emptyCurrent) override
GamepadUnitPropertyDefinitions(std::string prefix)
void onConnectComponent() override
Baseclass for all ArmarX ManagedIceObjects requiring properties.
void onInitComponent() override
Default component property definition container.
bool openGamepadConnection()
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
This file offers overloads of toIce() and fromIce() functions for STL container types.
Brief description of class GamepadUnit.