Go to the documentation of this file.
44 offerChannel(
"collisionDetector",
"Indicates whether the robot hand is colliding with an object.");
46 offerDataFieldWithDefault(
"collisionDetector",
"collisionDetected", defaultValue,
"Is 1 when a collision between hand and object was detected, 0 if not.");
54 if (collisionDetected)
56 setDataField(
"collisionDetector",
"collisionDetected", 1);
61 setDataField(
"collisionDetector",
"collisionDetected", 0);
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.
void setDataField(const std::string &channelName, const std::string &datafieldName, const Variant &value, bool triggerFilterUpdate=true)
set datafield with datafieldName and in channel channelName
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
void offerConditionCheck(std::string checkName, ConditionCheck *conditionCheck)
Offer a condition check.
void offerDataFieldWithDefault(std::string channelName, std::string datafieldName, const Variant &defaultValue, std::string description)
Offer a datafield with default value.
void offerChannel(std::string channelName, std::string description)
Offer a channel.