23 std::string featStateName = this->
options.
taskName +
".PartialModelState";
26 PartialState::Ptr featState = std::make_shared<PartialModelState>(featStateName, *this->
model, this->
options.
jointIndexes, this->partialStateType);
28 return std::make_shared<PartialStateFeature>(featName, featState);
33 std::string featDesStateName = this->
options.
taskName +
".PartialTargetState";
34 std::string featDesName = this->
options.
taskName +
".PartialStateFeatureDesired";
36 PartialState::Ptr featDesState = std::make_shared<PartialTargetState>(featDesStateName, *this->
model, this->
options.
jointIndexes, this->partialStateType);
38 return std::make_shared<PartialStateFeature>(featDesName, featDesState);
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);
virtual Feature::Ptr buildFeature()
Eigen::VectorXi jointIndexes
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
virtual void setTaskType()
virtual void setTaskState()
void setQd(const Eigen::VectorXd &newQd)
PartialPostureTaskBuilder(const TaskBuilderOptions &taskOptions, Model::Ptr modelPtr)
TaskBuilderOptions options
virtual ~PartialPostureTaskBuilder()
virtual Feature::Ptr buildFeatureDesired()
void setQdd(const Eigen::VectorXd &newQdd)
void setQ(const Eigen::VectorXd &newQ)