ocra-recipes
Doxygen documentation for the ocra-recipes repository
gOcraFullPostureTaskManager.h
Go to the documentation of this file.
1 #ifndef gOcraFULLPOSTURETASKMANAGER_H
2 #define gOcraFULLPOSTURETASKMANAGER_H
3 
4 #include "ocra/control/Model.h"
9 
10 #include <Eigen/Dense>
11 
12 namespace gocra
13 {
14 
19 {
20  public:
21  gOcraFullPostureTaskManager(GHCJTController& ctrl, const ocra::Model& model, const std::string& taskName, int fullStateType, double stiffness, double damping);
22 
23  gOcraFullPostureTaskManager(GHCJTController& ctrl, const ocra::Model& model, const std::string& taskName, int fullStateType, double stiffness, double damping, const Eigen::VectorXd& init_q);
24 
26 
27  // All Managers have this
28  void activate();
29  void deactivate();
30 
31  // Set the task reference
32  void setPosture(const Eigen::VectorXd& q);
33  void setPosture(const Eigen::VectorXd& q, const Eigen::VectorXd& qdot, const Eigen::VectorXd& qddot);
34 
35  // For objective tasks
36  void setStiffness(double stiffness);
37  double getStiffness();
38  void setDamping(double damping);
39  double getDamping();
40 
41 
42  // Task error
43  Eigen::VectorXd getTaskError();
44 
45 
46  private:
47  gocra::GHCJTTask* task;
48 
50  ocra::FullModelState::Ptr featState;
51 
52  ocra::FullStateFeature* featDes;
53  ocra::FullTargetState::Ptr featDesState;
54 
55  void _init(int fullStateType, double stiffness, double damping);
56 };
57 
58 }
59 
60 #endif // gOcraFULLPOSTURETASKMANAGER_H
Define task class for GHCJT controller. It inherits from the task class defined in the ocra framework...
gOcraFullPostureTaskManager(GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, int fullStateType, double stiffness, double damping)
Declaration file of the Model class.
Model class.
Definition: Model.h:38
Task Manager for the Center of Mass (CoM) task with the gOcra Controllers.
gOcra Task Manager for the joint space posture
gOcra Controller based on LQP solver for the ocra framework.
Define the Generalized Hierarchical Controller based on Jacobian transpose (GHCJT) in quasi-static ca...
Used to build tasks in the manikin configuration space.
Definition: Feature.h:326
A generic abstract task for the GHCJT controller.
Definition: GHCJTTask.h:41
gocra::GHCJTController & ctrl