|
ocra-recipes
Doxygen documentation for the ocra-recipes repository
|
Task Manager for partal joint posture task. More...
#include <gOcraPartialPostureTaskManager.h>
Public Member Functions | |
| gOcraPartialPostureTaskManager (GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, int fullStateType, Eigen::VectorXi &dofIndices, double stiffness, double damping) | |
| gOcraPartialPostureTaskManager (GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, int fullStateType, Eigen::VectorXi &dofIndices, double stiffness, double damping, Eigen::VectorXd &init_q) | |
| ~gOcraPartialPostureTaskManager () | |
| void | setPosture (Eigen::VectorXd &q) |
| void | setPosture (Eigen::VectorXd &q, Eigen::VectorXd &qdot, Eigen::VectorXd &qddot) |
| void | activate () |
| void | deactivate () |
Public Member Functions inherited from gocra::gOcraTaskManagerBase | |
| gOcraTaskManagerBase (gocra::GHCJTController &ctrl, const ocra::Model &model, const std::string &name) | |
| virtual VectorXd | getTaskError () |
| double | getTaskErrorNorm () |
Additional Inherited Members | |
Protected Attributes inherited from gocra::gOcraTaskManagerBase | |
| gocra::GHCJTController & | ctrl |
| const ocra::Model & | model |
| const std::string & | name |
Task Manager for partal joint posture task.
Definition at line 18 of file gOcraPartialPostureTaskManager.h.
| gocra::gOcraPartialPostureTaskManager::gOcraPartialPostureTaskManager | ( | GHCJTController & | _ctrl, |
| const ocra::Model & | _model, | ||
| const std::string & | _taskName, | ||
| int | _fullStateType, | ||
| Eigen::VectorXi & | _dofIndices, | ||
| double | _stiffness, | ||
| double | _damping | ||
| ) |
Base constructor
| ctrl | GHCJTController to connect to |
| model | ocra model to setup the task |
| taskName | Name of the task |
| fullStateType | ocra::FullState enum specifying between (ocra::FullState::FULL_STATE, ocra::FullState::FREE_FLYER, ocra::FullState::INTERNAL) |
| dofIndices | Vector of indices for the DOFs to control |
| stiffness | Stiffness constant for task |
| damping | Damping constant for task |
Definition at line 16 of file gOcraPartialPostureTaskManager.cpp.
| gocra::gOcraPartialPostureTaskManager::gOcraPartialPostureTaskManager | ( | GHCJTController & | _ctrl, |
| const ocra::Model & | _model, | ||
| const std::string & | _taskName, | ||
| int | _fullStateType, | ||
| Eigen::VectorXi & | _dofIndices, | ||
| double | _stiffness, | ||
| double | _damping, | ||
| Eigen::VectorXd & | _init_q | ||
| ) |
Constructor with desired initial position
| ctrl | GHCJTController to connect to |
| model | ocra model to setup the task |
| taskName | Name of the task |
| fullStateType | ocra::FullState enum specifying between (ocra::FullState::FULL_STATE, ocra::FullState::FREE_FLYER, ocra::FullState::INTERNAL) |
| dofIndices | Vector of indices for the DOFs to control |
| stiffness | Stiffness constant for task |
| damping | Damping constant for task |
| init_q | Initial posture |
Definition at line 33 of file gOcraPartialPostureTaskManager.cpp.
| gocra::gOcraPartialPostureTaskManager::~gOcraPartialPostureTaskManager | ( | ) |
|
virtual |
Activate function
Implements gocra::gOcraTaskManagerBase.
Definition at line 105 of file gOcraPartialPostureTaskManager.cpp.
|
virtual |
Deactivate function
Implements gocra::gOcraTaskManagerBase.
Definition at line 113 of file gOcraPartialPostureTaskManager.cpp.
| void gocra::gOcraPartialPostureTaskManager::setPosture | ( | Eigen::VectorXd & | q | ) |
Sets the partial joint space posture for the task
Definition at line 65 of file gOcraPartialPostureTaskManager.cpp.
| void gocra::gOcraPartialPostureTaskManager::setPosture | ( | Eigen::VectorXd & | q, |
| Eigen::VectorXd & | qdot, | ||
| Eigen::VectorXd & | qddot | ||
| ) |
Sets the partial joint space posture, velocity and acceleration for the task
Definition at line 80 of file gOcraPartialPostureTaskManager.cpp.
1.8.11