|
ocra-recipes
Doxygen documentation for the ocra-recipes repository
|
Task Manager for a segment's pose. More...
#include <gOcraSegPoseTaskManager.h>
Public Member Functions | |
| gOcraSegPoseTaskManager (GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, const std::string &segmentName, ocra::ECartesianDof axes, double stiffness, double damping) | |
| gOcraSegPoseTaskManager (GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, const std::string &segmentName, ocra::ECartesianDof axes, double stiffness, double damping, const Eigen::Displacementd &targetPose) | |
| ~gOcraSegPoseTaskManager () | |
| void | setState (const Eigen::Displacementd &pose) |
| void | setState (const Eigen::Displacementd &pose, const Eigen::Twistd &velocity, const Eigen::Twistd &acceleration) |
| 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 a segment's pose.
Definition at line 17 of file gOcraSegPoseTaskManager.h.
| gocra::gOcraSegPoseTaskManager::gOcraSegPoseTaskManager | ( | GHCJTController & | _ctrl, |
| const ocra::Model & | _model, | ||
| const std::string & | _taskName, | ||
| const std::string & | _segmentName, | ||
| ocra::ECartesianDof | _axes, | ||
| 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 |
| _axes | The axes used for the task |
| _stiffness | Stiffness constant for task |
| _damping | Damping constant for task |
Definition at line 16 of file gOcraSegPoseTaskManager.cpp.
| gocra::gOcraSegPoseTaskManager::gOcraSegPoseTaskManager | ( | GHCJTController & | _ctrl, |
| const ocra::Model & | _model, | ||
| const std::string & | _taskName, | ||
| const std::string & | _segmentName, | ||
| ocra::ECartesianDof | _axes, | ||
| double | _stiffness, | ||
| double | _damping, | ||
| const Eigen::Displacementd & | _poseDes | ||
| ) |
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 |
| _axes | The axes used for the task |
| _stiffness | Stiffness constant for task |
| _damping | Damping constant for task |
| _poseDes | Initial pose for task |
Definition at line 33 of file gOcraSegPoseTaskManager.cpp.
| gocra::gOcraSegPoseTaskManager::~gOcraSegPoseTaskManager | ( | ) |
|
virtual |
Activates the task
Implements gocra::gOcraTaskManagerBase.
Definition at line 140 of file gOcraSegPoseTaskManager.cpp.
|
virtual |
Deactivates the task
Implements gocra::gOcraTaskManagerBase.
Definition at line 148 of file gOcraSegPoseTaskManager.cpp.
| double gocra::gOcraSegPoseTaskManager::getDamping | ( | ) |
Gets the damping constant for this task
Definition at line 122 of file gOcraSegPoseTaskManager.cpp.
| double gocra::gOcraSegPoseTaskManager::getStiffness | ( | ) |
Gets the stiffness constant for this task
Definition at line 103 of file gOcraSegPoseTaskManager.cpp.
|
virtual |
Gets the error for this task (COM position error)
Reimplemented from gocra::gOcraTaskManagerBase.
Definition at line 131 of file gOcraSegPoseTaskManager.cpp.
| void gocra::gOcraSegPoseTaskManager::setDamping | ( | double | damping | ) |
Sets the damping for this task
| damping | Desired damping |
Definition at line 113 of file gOcraSegPoseTaskManager.cpp.
| void gocra::gOcraSegPoseTaskManager::setState | ( | const Eigen::Displacementd & | pose | ) |
Sets the pose for the task, both the translational and rotational components
| pose | Vector for desired position |
Definition at line 71 of file gOcraSegPoseTaskManager.cpp.
| void gocra::gOcraSegPoseTaskManager::setState | ( | const Eigen::Displacementd & | pose, |
| const Eigen::Twistd & | velocity, | ||
| const Eigen::Twistd & | acceleration | ||
| ) |
Sets the pose, velocity and acceleration for the task, both the translational and rotational components
| pose | Desired pose |
| velocity | Desired velocity |
| acceleration | Desired acceleration |
Definition at line 82 of file gOcraSegPoseTaskManager.cpp.
| void gocra::gOcraSegPoseTaskManager::setStiffness | ( | double | stiffness | ) |
Sets the stiffness for this task
| stiffness | Desired stiffness |
Definition at line 94 of file gOcraSegPoseTaskManager.cpp.
1.8.11