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

Task Manager for the Center of Mass (CoM) task with the gOcra Controller. More...

#include <gOcraSegOrientationTaskManager.h>

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

Public Member Functions

 gOcraSegOrientationTaskManager (GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, const std::string &segmentName, double stiffness, double damping)
 
 gOcraSegOrientationTaskManager (GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, const std::string &segmentName, double stiffness, double damping, const Eigen::Rotation3d &targetPose)
 
 ~gOcraSegOrientationTaskManager ()
 
void setOrientation (const Eigen::Rotation3d &pos)
 
void activate ()
 
void deactivate ()
 
void setStiffness (double stiffness)
 
double getStiffness ()
 
void setDamping (double damping)
 
double getDamping ()
 
Eigen::VectorXd getTaskError ()
 
- Public Member Functions inherited from gocra::gOcraTaskManagerBase
 gOcraTaskManagerBase (gocra::GHCJTController &ctrl, const ocra::Model &model, const std::string &name)
 
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 the Center of Mass (CoM) task with the gOcra Controller.

Definition at line 17 of file gOcraSegOrientationTaskManager.h.

Constructor & Destructor Documentation

gocra::gOcraSegOrientationTaskManager::gOcraSegOrientationTaskManager ( GHCJTController _ctrl,
const ocra::Model _model,
const std::string &  _taskName,
const std::string &  _segmentName,
double  _stiffness,
double  _damping 
)

Base constructor

Parameters
_ctrlGHCJTController to connect to
_modelocra model to setup the task
_taskNameName of the task
_segmentNameName of the segment for the task
_stiffnessStiffness constant for task
_dampingDamping constant for task

Definition at line 15 of file gOcraSegOrientationTaskManager.cpp.

gocra::gOcraSegOrientationTaskManager::gOcraSegOrientationTaskManager ( GHCJTController _ctrl,
const ocra::Model _model,
const std::string &  _taskName,
const std::string &  _segmentName,
double  _stiffness,
double  _damping,
const Eigen::Rotation3d &  _orientationDes 
)

Constructor with desired pose

Parameters
_ctrlGHCJTController to connect to
_modelocra model to setup the task
_taskNameName of the task
_segmentNameName of the segment for the task
_stiffnessStiffness constant for task
_dampingDamping constant for task
_orientationDesInitial orientation for task

Definition at line 31 of file gOcraSegOrientationTaskManager.cpp.

gocra::gOcraSegOrientationTaskManager::~gOcraSegOrientationTaskManager ( )

Member Function Documentation

void gocra::gOcraSegOrientationTaskManager::activate ( )
virtual

Activates the task

Implements gocra::gOcraTaskManagerBase.

Definition at line 115 of file gOcraSegOrientationTaskManager.cpp.

void gocra::gOcraSegOrientationTaskManager::deactivate ( )
virtual

Deactivates the task

Implements gocra::gOcraTaskManagerBase.

Definition at line 123 of file gOcraSegOrientationTaskManager.cpp.

double gocra::gOcraSegOrientationTaskManager::getDamping ( )

Gets the damping constant for this task

Returns
The damping for this task

Definition at line 106 of file gOcraSegOrientationTaskManager.cpp.

double gocra::gOcraSegOrientationTaskManager::getStiffness ( )

Gets the stiffness constant for this task

Returns
The stiffness for this task

Definition at line 87 of file gOcraSegOrientationTaskManager.cpp.

Eigen::VectorXd gocra::gOcraSegOrientationTaskManager::getTaskError ( )
virtual

Gets the error for this task (COM position error)

Reimplemented from gocra::gOcraTaskManagerBase.

Definition at line 131 of file gOcraSegOrientationTaskManager.cpp.

void gocra::gOcraSegOrientationTaskManager::setDamping ( double  damping)

Sets the damping for this task

Parameters
dampingDesired damping

Definition at line 97 of file gOcraSegOrientationTaskManager.cpp.

void gocra::gOcraSegOrientationTaskManager::setOrientation ( const Eigen::Rotation3d &  orientation)

Sets the orientation for the task, only the rotational pose

Parameters
orientationDesired orientation

Definition at line 65 of file gOcraSegOrientationTaskManager.cpp.

void gocra::gOcraSegOrientationTaskManager::setStiffness ( double  stiffness)

Sets the stiffness for this task

Parameters
stiffnessDesired stiffness

Definition at line 78 of file gOcraSegOrientationTaskManager.cpp.


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