ocra-recipes
Doxygen documentation for the ocra-recipes repository
Public Member Functions | List of all members
gocra::gOcraPartialPostureTaskManager Class Reference

Task Manager for partal joint posture task. More...

#include <gOcraPartialPostureTaskManager.h>

Inheritance diagram for gocra::gOcraPartialPostureTaskManager:
[legend]
Collaboration diagram for gocra::gOcraPartialPostureTaskManager:
[legend]

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::GHCJTControllerctrl
 
const ocra::Modelmodel
 
const std::string & name
 

Detailed Description

Task Manager for partal joint posture task.

Definition at line 18 of file gOcraPartialPostureTaskManager.h.

Constructor & Destructor Documentation

gocra::gOcraPartialPostureTaskManager::gOcraPartialPostureTaskManager ( GHCJTController _ctrl,
const ocra::Model _model,
const std::string &  _taskName,
int  _fullStateType,
Eigen::VectorXi &  _dofIndices,
double  _stiffness,
double  _damping 
)

Base constructor

Parameters
ctrlGHCJTController to connect to
modelocra model to setup the task
taskNameName of the task
fullStateTypeocra::FullState enum specifying between (ocra::FullState::FULL_STATE, ocra::FullState::FREE_FLYER, ocra::FullState::INTERNAL)
dofIndicesVector of indices for the DOFs to control
stiffnessStiffness constant for task
dampingDamping 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

Parameters
ctrlGHCJTController to connect to
modelocra model to setup the task
taskNameName of the task
fullStateTypeocra::FullState enum specifying between (ocra::FullState::FULL_STATE, ocra::FullState::FREE_FLYER, ocra::FullState::INTERNAL)
dofIndicesVector of indices for the DOFs to control
stiffnessStiffness constant for task
dampingDamping constant for task
init_qInitial posture

Definition at line 33 of file gOcraPartialPostureTaskManager.cpp.

gocra::gOcraPartialPostureTaskManager::~gOcraPartialPostureTaskManager ( )

Member Function Documentation

void gocra::gOcraPartialPostureTaskManager::activate ( )
virtual

Activate function

Implements gocra::gOcraTaskManagerBase.

Definition at line 105 of file gOcraPartialPostureTaskManager.cpp.

void gocra::gOcraPartialPostureTaskManager::deactivate ( )
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.


The documentation for this class was generated from the following files: