12 , _bodyTask(factory.createTask(body->getName()+
".task", _bodyFeature))
18 _bodyTask->activateContactMode();
28 ss <<
getName() <<
"." << _points.size();
30 SegmentFrame::Ptr sf = std::make_shared<SegmentFrame>(ss.str(), _body->getModel(), _body->getSegmentIndex(), frame);
31 _points.push_back(sf);
33 PointContactFeature::Ptr pf = std::make_shared<PointContactFeature>(sf->getName()+
".feature", sf);
34 _features.push_back(pf);
36 std::shared_ptr<Task> task = _factory.
createContactTask(sf->getName()+
".task", pf, _mu, _margin);
37 _tasks.push_back(task);
const std::string & getName() const
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
Interface for controllers.
std::shared_ptr< Task > createContactTask(const std::string &name, PointContactFeature::Ptr feature, double mu, double margin) const
Creates a contact task.