17 _init(_stiffness, _damping);
32 _init(_stiffness, _damping);
58 void gOcraCoMTaskManager::_init(
double stiffness,
double damping)
81 setState(position, Eigen::Vector3d::Zero(), Eigen::Vector3d::Zero());
92 featDesFrame->
setPosition(Eigen::Displacementd(position));
93 featDesFrame->
setVelocity(Eigen::Twistd(0.0, 0.0, 0.0, velocity(0), velocity(1), velocity(2)) );
94 featDesFrame->
setAcceleration(Eigen::Twistd(0.0, 0.0, 0.0, acceleration(0), acceleration(1), acceleration(2)) );
void setDamping(double B)
gOcraCoMTaskManager(GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, ocra::ECartesianDof axes, double stiffness, double damping)
void setDamping(double damping)
Eigen::VectorXd getTaskError()
const Eigen::MatrixXd & getDamping() const
const Eigen::VectorXd & getError() const
Task Manager for the Center of Mass (CoM) task with the gOcra Controllers.
gOcra Controller based on LQP solver for the ocra framework.
virtual const Eigen::Vector3d & getCoMPosition() const =0
Used to build positioning tasks.
void setPosition(const Eigen::Displacementd &H)
gocra::GHCJTController & ctrl
void setAcceleration(const Eigen::Twistd &gamma)
void setState(const Eigen::Vector3d &position)
void setVelocity(const Eigen::Twistd &T)
void setWeight(double weight)
void setStiffness(double K)
void setStiffness(double stiffness)
void addTask(std::shared_ptr< Task > task)
void activateAsObjective()
GHCJTTask & createGHCJTTask(const std::string &name, Feature::Ptr feature, Feature::Ptr featureDes) const
const ocra::Model & model
Creates a frame whose center is at the CoM of the model and whose axes are parallel to the axes of th...
Represents a 'target', i.e. something that does not depend on a model but must match with another fra...
const Eigen::MatrixXd & getStiffness() const