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");
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Property< PropertyType > getProperty(const std::string &name)
Checks if the numbers published in the relevant data fields equal a reference value.
Checks if the numbers published in the relevant data fields are larger than a reference value.
Checks if the numbers published in the relevant data fields are smaller than a reference value.
Checks if the relevant data fields have been updated since the installation of this condition.
void onConnectObserver() override
Framework hook.
void onExitObserver() override
Framework hook.
PropertyDefinitionsPtr createPropertyDefinitions() override
void onInitObserver() override
Framework hook.
void reportGamepadState(const std::string &device, const std::string &name, const GamepadData &data, const TimestampBasePtr ×tamp, const Ice::Current &c) override
void offeringTopic(const std::string &name)
Registers a topic for retrival after initialization.
TopicProxyType getTopic(const std::string &name)
Returns a proxy of the specified topic.
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
bool existsChannel(const std::string &channelName) const
void offerChannel(std::string channelName, std::string description)
Offer a channel.
void offerConditionCheck(std::string checkName, ConditionCheck *conditionCheck)
Offer a condition check.
void updateChannel(const std::string &channelName, const std::set< std::string > &updatedDatafields=std::set< std::string >())
Update all conditions for a channel.
bool offerOrUpdateDataField(std::string channelName, std::string datafieldName, const Variant &value, const std::string &description)
The Variant class is described here: Variants.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
IceInternal::Handle< TimestampVariant > TimestampVariantPtr