ocra-recipes
Doxygen documentation for the ocra-recipes repository
ControlConstraint.h
Go to the documentation of this file.
1 
8 #ifndef _CONTROL_CONSTRAINT_H_
9 #define _CONTROL_CONSTRAINT_H_
10 
11 
13 #include "ocra/control/Model.h"
15 #include "ocra/optim/Variable.h"
16 #include "ocra/optim/Constraint.h"
17 
18 
19 namespace ocra
20 {
21 
27 {
28 public:
30  : _constraint() {};
31 
32  virtual ~ControlConstraint() {};
33 
35  {
36  return *_constraint.get();
37  }
38 
39  friend class Controller;
40  virtual void connectToController(const FullDynamicEquationFunction& dynamicEquation, bool useReducedProblem) = 0;
41  virtual void disconnectFromController() = 0;
42 
43 protected:
44  boost::shared_ptr< Constraint<LinearFunction> > _constraint;
45 };
46 
47 
48 
49  // end group constraint
51 
52 }
53 
54 
55 
56 #endif
Declaration file of the Model class.
virtual void connectToController(const FullDynamicEquationFunction &dynamicEquation, bool useReducedProblem)=0
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
boost::shared_ptr< Constraint< LinearFunction > > _constraint
Interface for controllers.
Definition: Controller.h:53
Constraint class.
Definition: Constraint.h:100
Declaration file of the LinearFunction class.
LinearConstraint & getConstraint()
Create a linear function that represents the dynamic equation of motion.
Declaration file of the Constraint class.
Define base class that can be used as constraints in wOcra controller.
Declaration file of the Variable class.
virtual void disconnectFromController()=0