Go to the documentation of this file.
39 usingTopic(getProperty<std::string>(
"GamepadTopicName").getValue());
46 offeringTopic(getProperty<std::string>(
"DebugDrawerTopic").getValue());
52 debugDrawerPrx = getTopic<DebugDrawerInterfacePrx>(
53 getProperty<std::string>(
"DebugDrawerTopic").getValue());
59 debugDrawerPrx->removePoseVisu(
"IMU",
"orientation");
60 debugDrawerPrx->removeLineVisu(
"IMU",
"acceleration");
72 const std::string& name,
73 const GamepadData&
data,
75 const Ice::Current&
c)
77 std::unique_lock lock(dataMutex);
90 device,
"leftStickX",
Variant(
data.leftStickX),
"X value of the left analog stick");
92 device,
"leftStickY",
Variant(
data.leftStickY),
"Y value of the left analog stick");
94 device,
"rightStickX",
Variant(
data.rightStickX),
"X value of the right analog stick");
96 device,
"rightStickY",
Variant(
data.rightStickY),
"Y value of the right analog stick");
100 device,
"leftTrigger",
Variant(
data.leftTrigger),
"value of the left analog trigger");
104 "value of the right analog trigger");
108 device,
"backButton",
Variant(
data.backButton),
"Back button pressed");
111 device,
"leftButton",
Variant(
data.leftButton),
"Left shoulder button pressed");
113 device,
"leftStickButton",
Variant(
data.leftStickButton),
"Left stick button pressed");
115 device,
"rightButton",
Variant(
data.rightButton),
"Right shoulder button pressed");
119 "Right stick button pressed");
121 device,
"startButton",
Variant(
data.startButton),
"Start button pressed");
123 device,
"theMiddleButton",
Variant(
data.theMiddleButton),
"The middle button pressed");
void updateChannel(const std::string &channelName, const std::set< std::string > &updatedDatafields=std::set< std::string >())
Update all conditions for a channel.
The Variant class is described here: Variants.
PropertyDefinitionsPtr createPropertyDefinitions() override
void reportGamepadState(const std::string &device, const std::string &name, const GamepadData &data, const TimestampBasePtr ×tamp, const Ice::Current &c) override
bool offerOrUpdateDataField(std::string channelName, std::string datafieldName, const Variant &value, const std::string &description)
bool existsChannel(const std::string &channelName) const
void onConnectObserver() override
Framework hook.
void onInitObserver() override
Framework hook.
void onExitObserver() override
Framework hook.
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
void offeringTopic(const std::string &name)
Registers a topic for retrival after initialization.
void offerConditionCheck(std::string checkName, ConditionCheck *conditionCheck)
Offer a condition check.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void offerChannel(std::string channelName, std::string description)
Offer a channel.