|
ocra-recipes
Doxygen documentation for the ocra-recipes repository
|
Task Manager for the Center of Mass (CoM) task with the gOcra Controller. More...
#include <gOcraSegOrientationTaskManager.h>
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::GHCJTController & | ctrl |
| const ocra::Model & | model |
| const std::string & | name |
Task Manager for the Center of Mass (CoM) task with the gOcra Controller.
Definition at line 17 of file gOcraSegOrientationTaskManager.h.
| gocra::gOcraSegOrientationTaskManager::gOcraSegOrientationTaskManager | ( | GHCJTController & | _ctrl, |
| const ocra::Model & | _model, | ||
| const std::string & | _taskName, | ||
| const std::string & | _segmentName, | ||
| double | _stiffness, | ||
| double | _damping | ||
| ) |
Base constructor
| _ctrl | GHCJTController to connect to |
| _model | ocra model to setup the task |
| _taskName | Name of the task |
| _segmentName | Name of the segment for the task |
| _stiffness | Stiffness constant for task |
| _damping | Damping 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
| _ctrl | GHCJTController to connect to |
| _model | ocra model to setup the task |
| _taskName | Name of the task |
| _segmentName | Name of the segment for the task |
| _stiffness | Stiffness constant for task |
| _damping | Damping constant for task |
| _orientationDes | Initial orientation for task |
Definition at line 31 of file gOcraSegOrientationTaskManager.cpp.
| gocra::gOcraSegOrientationTaskManager::~gOcraSegOrientationTaskManager | ( | ) |
|
virtual |
Activates the task
Implements gocra::gOcraTaskManagerBase.
Definition at line 115 of file gOcraSegOrientationTaskManager.cpp.
|
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
Definition at line 106 of file gOcraSegOrientationTaskManager.cpp.
| double gocra::gOcraSegOrientationTaskManager::getStiffness | ( | ) |
Gets the stiffness constant for this task
Definition at line 87 of file gOcraSegOrientationTaskManager.cpp.
|
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
| damping | Desired 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
| orientation | Desired orientation |
Definition at line 65 of file gOcraSegOrientationTaskManager.cpp.
| void gocra::gOcraSegOrientationTaskManager::setStiffness | ( | double | stiffness | ) |
Sets the stiffness for this task
| stiffness | Desired stiffness |
Definition at line 78 of file gOcraSegOrientationTaskManager.cpp.
1.8.11