ocra-recipes
Doxygen documentation for the ocra-recipes repository
gOcraPartialPostureTaskManager.h
Go to the documentation of this file.
1 #ifndef gOcraPARTIALPOSTURETASKMANAGER_H
2 #define gOcraPARTIALPOSTURETASKMANAGER_H
3 
5 #include "ocra/control/Model.h"
8 #include "ocra/control/Feature.h"
9 
10 #include <Eigen/Dense>
11 
12 namespace gocra
13 {
14 
19 {
20  public:
21  gOcraPartialPostureTaskManager(GHCJTController& ctrl, const ocra::Model& model, const std::string& taskName, int fullStateType, Eigen::VectorXi& dofIndices, double stiffness, double damping);
22 
23  gOcraPartialPostureTaskManager(GHCJTController& ctrl, const ocra::Model& model, const std::string& taskName, int fullStateType, Eigen::VectorXi& dofIndices, double stiffness, double damping, Eigen::VectorXd& init_q);
24 
26 
27  void setPosture(Eigen::VectorXd& q);
28  void setPosture(Eigen::VectorXd& q, Eigen::VectorXd& qdot, Eigen::VectorXd& qddot);
29 /*
30  void setStiffnessDamping(double stiffness, double damping);
31 */
32 
33  void activate();
34  void deactivate();
35 
36  private:
37  gocra::GHCJTTask* task;
39  ocra::PartialModelState::Ptr featState;
40 
42  ocra::PartialTargetState::Ptr featDesState;
43 
44 /*
45  Eigen::Vector3d _posDes;
46  Eigen::Vector3d _velDes;
47  Eigen::Vector3d _accDes;
48 */
49 
50  void _init(int fullStateType, VectorXi& dofIndices, double stiffness, double damping);
51 };
52 
53 }
54 
55 #endif // gOcraFULLPOSTURETASKMANAGER_H
Used to build tasks in a partial configuration space.
Definition: Feature.h:369
Define task class for GHCJT controller. It inherits from the task class defined in the ocra framework...
Declaration file of the Model class.
gOcraPartialPostureTaskManager(GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, int fullStateType, Eigen::VectorXi &dofIndices, double stiffness, double damping)
A class hierarchy to compute task errors based on control frames.
Model class.
Definition: Model.h:38
Task Manager for the Center of Mass (CoM) task with the gOcra Controllers.
gOcra Controller based on LQP solver for the ocra framework.
Define the Generalized Hierarchical Controller based on Jacobian transpose (GHCJT) in quasi-static ca...
A generic abstract task for the GHCJT controller.
Definition: GHCJTTask.h:41
gocra::GHCJTController & ctrl
Task Manager for partal joint posture task.