19 _init(Eigen::Vector3d::Zero(), _stiffness, _damping);
36 _init(_segPoint_Local, _stiffness, _damping);
53 _init(Eigen::Vector3d::Zero(), _stiffness, _damping);
73 _init(_segPoint_Local, _stiffness, _damping);
81 void gOcraSegCartesianTaskManager::_init(
const Eigen::Vector3d& _taskPoint_LocalFrame,
double _stiffness,
double _damping)
107 setState(position, Eigen::Vector3d::Zero(), Eigen::Vector3d::Zero());
118 featDesFrame->
setPosition(Eigen::Displacementd(position));
119 featDesFrame->
setVelocity(Eigen::Twistd(0.0, 0.0, 0.0, velocity(0), velocity(1), velocity(2)) );
120 featDesFrame->
setAcceleration(Eigen::Twistd(0.0, 0.0, 0.0, acceleration(0), acceleration(1), acceleration(2)) );
void setStiffness(double stiffness)
void setState(const Eigen::Vector3d &position)
Eigen::VectorXd getTaskError()
void setDamping(double B)
const Eigen::MatrixXd & getDamping() const
const Eigen::VectorXd & getError() const
gOcraSegCartesianTaskManager(GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, const std::string &segmentName, ocra::ECartesianDof axes, double stiffness, double damping)
gOcraTaskManagerBase(gocra::GHCJTController &ctrl, const ocra::Model &model, const std::string &name)
Task Manager for the Center of Mass (CoM) task with the gOcra Controllers.
gOcra Controller based on LQP solver for the ocra framework.
Used to build positioning tasks.
void setPosition(const Eigen::Displacementd &H)
A frame attached to a segment of a model.
int getSegmentIndex(const std::string &name) const
gocra::GHCJTController & ctrl
void setAcceleration(const Eigen::Twistd &gamma)
void setDamping(double damping)
void setVelocity(const Eigen::Twistd &T)
void setStiffness(double K)
const std::string SegmentName(const std::string &name) const
void addTask(std::shared_ptr< Task > task)
void activateAsObjective()
virtual const Eigen::Displacementd & getSegmentPosition(int index) const =0
GHCJTTask & createGHCJTTask(const std::string &name, Feature::Ptr feature, Feature::Ptr featureDes) const
const ocra::Model & model
Represents a 'target', i.e. something that does not depend on a model but must match with another fra...
const Eigen::MatrixXd & getStiffness() const