ocra-recipes
Doxygen documentation for the ocra-recipes repository
|
Task Manager for a contact task. More...
#include <gOcraContactTaskManager.h>
Public Member Functions | |
gOcraContactTaskManager (GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, const std::string &segmentName, Eigen::Displacementd H_segment_frame, double mu, double margin) | |
~gOcraContactTaskManager () | |
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::GHCJTController & | ctrl |
const ocra::Model & | model |
const std::string & | name |
Task Manager for a contact task.
Definition at line 18 of file gOcraContactTaskManager.h.
gocra::gOcraContactTaskManager::gOcraContactTaskManager | ( | GHCJTController & | _ctrl, |
const ocra::Model & | _model, | ||
const std::string & | _taskName, | ||
const std::string & | _segmentName, | ||
Eigen::Displacementd | _H_segment_frame, | ||
double | _mu, | ||
double | _margin | ||
) |
Base constructor
_ctrl | GHCJTController to connect to |
_model | ocra model to setup the task |
_taskName | Name of the tasks (prefix for the set of tasks) |
_segmentName | Name of segment that the contacts are attached to |
_H_segment_frame | Contact point local to the segment |
_mu | Coefficient of friction |
_margin | Margin inside the friction cone |
Definition at line 16 of file gOcraContactTaskManager.cpp.
gocra::gOcraContactTaskManager::~gOcraContactTaskManager | ( | ) |
|
virtual |
Activate function
Activates the constraint
Implements gocra::gOcraTaskManagerBase.
Definition at line 33 of file gOcraContactTaskManager.cpp.
|
virtual |
Deactivate function
Deactivates the constraint
Implements gocra::gOcraTaskManagerBase.
Definition at line 42 of file gOcraContactTaskManager.cpp.
|
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 48 of file gOcraContactTaskManager.cpp.
double gocra::gOcraContactTaskManager::getTaskErrorNorm | ( | ) |
Definition at line 54 of file gOcraContactTaskManager.cpp.