Go to the documentation of this file.
49 if (dataFields.size() != 1)
51 throw InvalidConditionException(
"Wrong number of datafields for condition magnitude larger: expected 1 actual: " +
ValueToString(dataFields.size()));
99 if (dataFields.size() != 1)
102 throw InvalidConditionException(
"Wrong number of datafields for condition equals ");
147 if (dataFields.size() != 1)
150 throw InvalidConditionException(
"Wrong number of datafields for condition InRange ");
The Variant class is described here: Variants.
const VariantTypeId Float
void addSupportedType(VariantTypeId dataFieldType=0, ParameterTypeList parameterTypes=ParameterTypeList())
Add a supported type for elementary condition check marks pairs of (dataFieldType,...
Eigen::Matrix4f toEigen(data::GlobalPose const &pose)
std::map< std::string, Variant > StringVariantMap
The LinkedDirection class.
const VariantTypeId Vector3
ConditionCheckMagnitudeInRange()
std::shared_ptr< Value > value()
bool evaluate(const StringVariantMap &dataFields) override
Evaluate the condition based on the current data field values.
ConditionCheck * clone() override
Clones the current check.
std::string ValueToString(const T &value)
const Variant & getParameter(int index)
Retrieve parameters of check.
ConditionCheckMagnitudeLarger()
static ParameterTypeList createParameterTypeList(int numberTypes,...)
ConditionCheck * clone() override
Clones the current check.
float getFloat(const Ice::Current &c=Ice::emptyCurrent) const override
Return the Variant's value as float.
bool evaluate(const StringVariantMap &dataFields) override
Evaluate the condition based on the current data field values.
bool evaluate(const StringVariantMap &dataFields) override
Evaluate the condition based on the current data field values.
FramedDirection is a 3 dimensional direction vector with a reference frame. The reference frame can b...
const VariantTypeId FramedDirection
void setNumberParameters(int numberParameters)
Sets the number of paramaters required for this check.
ConditionCheck * clone() override
Clones the current check.
ConditionCheckMagnitudeSmaller()
This file offers overloads of toIce() and fromIce() functions for STL container types.
double norm(const Point &a)
const VariantTypeId LinkedDirection