1 #ifndef _OCRA_OPTIM_ABILITY_SET_H_ 2 #define _OCRA_OPTIM_ABILITY_SET_H_ 44 _usageSet[prop0] =
true;
45 _usageSet[prop1] =
true;
61 for (
int i=0; i<5; ++i)
62 _usageSet[props[i]] =
true;
81 const eFunctionAbility props[] = { prop0, prop1, prop2, prop3, prop4, prop5, prop6, prop7, prop8, prop9 };
82 for (
int i=0; i<10; ++i)
83 _usageSet[props[i]] =
true;
98 _usageSet[prop] =
true;
105 _usageSet[prop] =
false;
110 std::vector<bool> _usageSet;
123 std::vector<bool> props;
125 for (
size_t i=0; i<n; ++i)
134 std::vector<bool> props;
136 for (
size_t i=0; i<n; ++i)
144 #endif //_OCRA_OPTIM_ABILITY_SET_H_
friend AbilitySet operator|(const AbilitySet a1, const AbilitySet a2)
eFunctionAbility
Enumeration of the computation abilities of a ocra function.
AbilitySet(eFunctionAbility prop0, eFunctionAbility prop1, eFunctionAbility prop2, eFunctionAbility prop3, eFunctionAbility prop4, eFunctionAbility prop5, eFunctionAbility prop6=FUN_VALUE, eFunctionAbility prop7=FUN_VALUE, eFunctionAbility prop8=FUN_VALUE, eFunctionAbility prop9=FUN_VALUE)
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
AbilitySet(eFunctionAbility prop0=FUN_VALUE, eFunctionAbility prop1=FUN_VALUE)
AbilitySet & add(eFunctionAbility prop)
friend AbilitySet operator&(const AbilitySet a1, const AbilitySet a2)
const std::vector< bool > & getUsageSet() const
AbilitySet(eFunctionAbility prop0, eFunctionAbility prop1, eFunctionAbility prop2, eFunctionAbility prop3=FUN_VALUE, eFunctionAbility prop4=FUN_VALUE)
#define ocra_assert(ocra_expression)
Declaration file of the IFunction interface.
AbilitySet(const std::vector< bool > &usageSet)