1 #ifndef _OCRA_FUNCTION_HELPERS_H_ 2 #define _OCRA_FUNCTION_HELPERS_H_ 7 #include <boost/shared_ptr.hpp> 36 void set(T* f,
double weight=1.)
45 throw std::runtime_error(
"[ObjectivePtr::getFunction] objective was not set");
52 throw std::runtime_error(
"[ObjectivePtr::getFunction] objective was not set");
59 throw std::runtime_error(
"[ObjectivePtr::getFunction] objective was not set");
66 throw std::runtime_error(
"[ObjectivePtr::getFunction] objective was not set");
71 boost::shared_ptr<T>
function;
72 boost::shared_ptr<Objective<T> > objective;
109 throw std::runtime_error(
"[EqualZeroConstraintPtr::getFunction] constraint was not set");
116 throw std::runtime_error(
"[EqualZeroConstraintPtr::getFunction] constraint was not set");
123 throw std::runtime_error(
"[EqualZeroConstraintPtr::getFunction] constraint was not set");
130 throw std::runtime_error(
"[EqualZeroConstraintPtr::getFunction] constraint was not set");
135 boost::shared_ptr<T>
function;
136 boost::shared_ptr<Constraint<T> > constraint;
173 throw std::runtime_error(
"[LessThanZeroConstraintPtr::getFunction] constraint was not set");
180 throw std::runtime_error(
"[LessThanZeroConstraintPtr::getFunction] constraint was not set");
187 throw std::runtime_error(
"[LessThanZeroConstraintPtr::getFunction] constraint was not set");
194 throw std::runtime_error(
"[LessThanZeroConstraintPtr::getFunction] constraint was not set");
199 boost::shared_ptr<T>
function;
200 boost::shared_ptr<Constraint<T> > constraint;
237 throw std::runtime_error(
"[GreaterThanZeroConstraintPtr::getFunction] constraint was not set");
244 throw std::runtime_error(
"[GreaterThanZeroConstraintPtr::getFunction] constraint was not set");
251 throw std::runtime_error(
"[GreaterThanZeroConstraintPtr::getFunction] constraint was not set");
258 throw std::runtime_error(
"[GreaterThanZeroConstraintPtr::getFunction] constraint was not set");
263 boost::shared_ptr<T>
function;
264 boost::shared_ptr<Constraint<T> > constraint;
const Objective< T > & getObjective() const
const T & getFunction() const
Constraint< T > & getConstraint()
const Constraint< T > & getConstraint() const
Objective< T > & getObjective()
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
const T & getFunction() const
Constraint< T > & getConstraint()
ObjectivePtr(T *f, double weight=1.)
const T & getFunction() const
GreaterThanZeroConstraintPtr(T *f)
EqualZeroConstraintPtr(T *f)
LessThanZeroConstraintPtr()
Declaration file of the Constraint class.
const Constraint< T > & getConstraint() const
GreaterThanZeroConstraintPtr()
Constraint< T > & getConstraint()
Declaration file of the Objective class.
const T & getFunction() const
const Constraint< T > & getConstraint() const
LessThanZeroConstraintPtr(T *f)