26 FullState::Ptr featState = std::make_shared<FullModelState>(featStateName, *this->
model, this->fullStateType);
28 return std::make_shared<FullStateFeature>(featName, featState);
33 std::string featDesStateName = this->
options.
taskName +
".FullTargetState";
34 std::string featDesName = this->
options.
taskName +
".FullStateFeatureDesired";
36 FullState::Ptr featDesState = std::make_shared<FullTargetState>(featDesStateName, *this->
model, this->fullStateType);
38 return std::make_shared<FullStateFeature>(featDesName, featDesState);
45 int nJoints = this->
model->nbInternalDofs();
52 state.
setQ(this->
task->getTaskState().getQ());
56 state.
setQd(Eigen::VectorXd::Zero(nJoints));
57 state.
setQdd(Eigen::VectorXd::Zero(nJoints));
59 this->
task->setDesiredTaskStateDirect(state);
FullPostureTaskBuilder(const TaskBuilderOptions &taskOptions, Model::Ptr modelPtr)
virtual void setTaskType()
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
virtual void setTaskState()
virtual ~FullPostureTaskBuilder()
virtual Feature::Ptr buildFeatureDesired()
void setQd(const Eigen::VectorXd &newQd)
TaskBuilderOptions options
void setQdd(const Eigen::VectorXd &newQdd)
void setQ(const Eigen::VectorXd &newQ)
virtual Feature::Ptr buildFeature()