18 _init(_fullStateType, _stiffness, _damping);
34 _init(_fullStateType, _stiffness, _damping);
41 void gOcraFullPostureTaskManager::_init(
int fullStateType,
double stiffness,
double damping)
65 setPosture(q, Eigen::VectorXd::Zero(featDesState->getSize()), Eigen::VectorXd::Zero(featDesState->getSize()));
74 if (q.size() != featDesState->getSize())
76 throw std::runtime_error(
"[gOcraFullPostureTaskManager::setPosture(Eigen::VectorXd&, Eigen::VectorXd&, Eigen::VectorXd&)] Input pose and required dimension does not match");
78 else if (qdot.size() != featDesState->getSize())
80 throw std::runtime_error(
"[gOcraFullPostureTaskManager::setPosture(Eigen::VectorXd&, Eigen::VectorXd&, Eigen::VectorXd&)] Input pose velocity and required dimension does not match");
82 else if (qddot.size() != featDesState->getSize())
84 throw std::runtime_error(
"[gOcraFullPostureTaskManager::setPosture(Eigen::VectorXd&, Eigen::VectorXd&, Eigen::VectorXd&)] Input pose acceleration and required dimension does not match");
87 featDesState->set_q(q);
88 featDesState->set_qdot(qdot);
89 featDesState->set_qddot(qddot);
void setPosture(const Eigen::VectorXd &q)
void setDamping(double B)
gOcraFullPostureTaskManager(GHCJTController &ctrl, const ocra::Model &model, const std::string &taskName, int fullStateType, double stiffness, double damping)
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.
Used to build tasks in the manikin configuration space.
gocra::GHCJTController & ctrl
void setDamping(double damping)
void setWeight(double weight)
void setStiffness(double stiffness)
void setStiffness(double K)
Eigen::VectorXd getTaskError()
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
const Eigen::MatrixXd & getStiffness() const