Go to the documentation of this file.
39 offerChannel(
"objectHypotheses",
"Gives information about having initial or validated hypotheses.");
41 offerDataFieldWithDefault(
"objectHypotheses",
"initialHypothesesCreated", defaultValue,
"Is 1 when initial object hypotheses are available, 0 if not, -1 if the creation failed.");
42 offerDataFieldWithDefault(
"objectHypotheses",
"hypothesesValidated", defaultValue,
"Is 1 when object hypotheses were validated, 0 if not, -1 if the validation failed.");
44 offerChannel(
"objectHypothesisPosition",
"Gives information about position and extent of the object hypothesis for pushing or grasping.");
59 if (hypothesesCreated)
61 setDataField(
"objectHypotheses",
"initialHypothesesCreated", 1);
66 setDataField(
"objectHypotheses",
"initialHypothesesCreated", -1);
78 if (hypothesesValidated)
80 setDataField(
"objectHypotheses",
"hypothesesValidated", 1);
85 setDataField(
"objectHypotheses",
"hypothesesValidated", -1);
97 setDataField(
"objectHypotheses",
"initialHypothesesCreated", 0);
98 setDataField(
"objectHypotheses",
"hypothesesValidated", 0);
107 const::armarx::Vector3BasePtr& principalAxis1, const::armarx::Vector3BasePtr& principalAxis2,
108 const::armarx::Vector3BasePtr& principalAxis3, const::armarx::Vector3BasePtr& eigenValues,
const Ice::Current&)
void updateChannel(const std::string &channelName, const std::set< std::string > &updatedDatafields=std::set< std::string >())
Update all conditions for a channel.
void onInitObserver() override
Framework hook.
The Variant class is described here: Variants.
void reportObjectHypothesesValidated(bool hypothesesValidated, const Ice::Current &) override
const VariantTypeId Float
const VariantTypeId Vector3
void reportInitialObjectHypothesesCreated(bool hypothesesCreated, const Ice::Current &) override
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 reportObjectHypothesisPosition(const ::armarx::FramedPositionBasePtr &objectPosition, ::Ice::Float objectExtent, const ::armarx::Vector3BasePtr &principalAxis1, const ::armarx::Vector3BasePtr &principalAxis2, const ::armarx::Vector3BasePtr &principalAxis3, const ::armarx::Vector3BasePtr &eigenValues, const Ice::Current &) override
void resetHypothesesStatus(const Ice::Current &) override
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
void onConnectObserver() override
Framework hook.
void offerConditionCheck(std::string checkName, ConditionCheck *conditionCheck)
Offer a condition check.
const VariantTypeId FramedPosition
void offerDataFieldWithDefault(std::string channelName, std::string datafieldName, const Variant &defaultValue, std::string description)
Offer a datafield with default value.
void offerDataField(std::string channelName, std::string datafieldName, VariantTypeId type, std::string description)
Offer a datafield without default value.
void offerChannel(std::string channelName, std::string description)
Offer a channel.