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

Task Manager for a set of contact tasks. More...

#include <gOcraContactSetTaskManager.h>

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

Public Member Functions

 gOcraContactSetTaskManager (GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, const std::string &segmentName, Eigen::Displacementd H_segment_frame[], int numContacts, double mu, double margin)
 
 ~gOcraContactSetTaskManager ()
 
void activate ()
 
void deactivate ()
 
VectorXd getTaskError ()
 
double getTaskErrorNorm ()
 
- 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 a set of contact tasks.

This class eases the activation and deactivation for a set of contact tasks (no need to write a loop remembering the task indices to activate and deactivate)

Definition at line 19 of file gOcraContactSetTaskManager.h.

Constructor & Destructor Documentation

gocra::gOcraContactSetTaskManager::gOcraContactSetTaskManager ( GHCJTController _ctrl,
const ocra::Model _model,
const std::string &  _taskName,
const std::string &  _segmentName,
Eigen::Displacementd  _H_segment_frame[],
int  _numContacts,
double  _mu,
double  _margin 
)

Base constructor

Parameters
_ctrlGHCJTController to connect to
_modelocra model to setup the task
_taskNameName of the tasks (prefix for the set of tasks)
_segmentNameName of segment that the contacts are attached to
_H_segment_frameArray of contact points local to the segment
_numContactsNumber of contact points in this set
_muCoefficient of friction
_marginMargin inside the friction cone

Definition at line 18 of file gOcraContactSetTaskManager.cpp.

gocra::gOcraContactSetTaskManager::~gOcraContactSetTaskManager ( )

Member Function Documentation

void gocra::gOcraContactSetTaskManager::activate ( )
virtual

Activate function

Activates all the constraints (as constraints)

Implements gocra::gOcraTaskManagerBase.

Definition at line 47 of file gOcraContactSetTaskManager.cpp.

void gocra::gOcraContactSetTaskManager::deactivate ( )
virtual

Deactivate function

Deactivates all the constraints

Implements gocra::gOcraTaskManagerBase.

Definition at line 59 of file gOcraContactSetTaskManager.cpp.

VectorXd gocra::gOcraContactSetTaskManager::getTaskError ( )
virtual

Returns the error vector of the task

If the derived child class does not have a meaningful error, it should override this function to throw an error

Reimplemented from gocra::gOcraTaskManagerBase.

Definition at line 68 of file gOcraContactSetTaskManager.cpp.

double gocra::gOcraContactSetTaskManager::getTaskErrorNorm ( )

Definition at line 74 of file gOcraContactSetTaskManager.cpp.


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