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

Task Manager for a segment's pose. More...

#include <gOcraSegPoseTaskManager.h>

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

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::GHCJTControllerctrl
 
const ocra::Modelmodel
 
const std::string & name
 

Detailed Description

Task Manager for a segment's pose.

Definition at line 17 of file gOcraSegPoseTaskManager.h.

Constructor & Destructor Documentation

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

Parameters
_ctrlGHCJTController to connect to
_modelocra model to setup the task
_taskNameName of the task
_segmentNameName of the segment for the task
_axesThe axes used for the task
_stiffnessStiffness constant for task
_dampingDamping 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

Parameters
_ctrlGHCJTController to connect to
_modelocra model to setup the task
_taskNameName of the task
_segmentNameName of the segment for the task
_axesThe axes used for the task
_stiffnessStiffness constant for task
_dampingDamping constant for task
_poseDesInitial pose for task

Definition at line 33 of file gOcraSegPoseTaskManager.cpp.

gocra::gOcraSegPoseTaskManager::~gOcraSegPoseTaskManager ( )

Member Function Documentation

void gocra::gOcraSegPoseTaskManager::activate ( )
virtual

Activates the task

Implements gocra::gOcraTaskManagerBase.

Definition at line 140 of file gOcraSegPoseTaskManager.cpp.

void gocra::gOcraSegPoseTaskManager::deactivate ( )
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

Returns
The damping for this task

Definition at line 122 of file gOcraSegPoseTaskManager.cpp.

double gocra::gOcraSegPoseTaskManager::getStiffness ( )

Gets the stiffness constant for this task

Returns
The stiffness for this task

Definition at line 103 of file gOcraSegPoseTaskManager.cpp.

Eigen::VectorXd gocra::gOcraSegPoseTaskManager::getTaskError ( )
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

Parameters
dampingDesired 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

Parameters
poseVector 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

Parameters
poseDesired pose
velocityDesired velocity
accelerationDesired acceleration

Definition at line 82 of file gOcraSegPoseTaskManager.cpp.

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

Sets the stiffness for this task

Parameters
stiffnessDesired stiffness

Definition at line 94 of file gOcraSegPoseTaskManager.cpp.


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