13 #ifndef __WOCRACTRL_H__ 15 #define __WOCRACTRL_H__ 117 WocraController(
const std::string& ctrlName, std::shared_ptr<Model> innerModel, std::shared_ptr<OneLevelSolver> innerSolver,
bool useReducedProblem);
133 std::shared_ptr<Model> getModel();
140 std::shared_ptr<OneLevelSolver> getSolver();
146 bool isUsingReducedProblem();
155 void setVariableMinimizationWeights(
double w_ddq,
double w_tau,
double w_fc);
162 void takeIntoAccountGravity(
bool useGrav);
176 void writePerformanceInStream(std::ostream& myOstream,
bool addCommaAtEnd)
const;
199 std::string getPerformances()
const;
237 virtual void doComputeOutput(Eigen::VectorXd& tau);
244 virtual void doAddTask(std::shared_ptr<Task> task);
252 virtual void doAddContactSet(
const ContactSet& contacts);
267 virtual std::shared_ptr<Task> doCreateTask(
const std::string& name, Feature::Ptr feature, Feature::Ptr featureDes)
const;
278 virtual std::shared_ptr<Task> doCreateTask(
const std::string& name, Feature::Ptr feature)
const;
291 virtual std::shared_ptr<Task> doCreateContactTask(
const std::string& name, PointContactFeature::Ptr feature,
double mu,
double margin)
const;
305 boost::shared_ptr<Pimpl> pimpl;
307 std::shared_ptr<ocra::JointLimitConstraint> jointLimitConstraint;
308 std::shared_ptr<ocra::TorqueLimitConstraint> torqueLimitConstraint;
Define joint limit constraint for wOcra controller.
Define the internal solver class that can be used in the wOcra controller.
Declaration file of the Model class.
Contains all the abstract & concrete classes for robotic control with optimization, based on the ocra framework.
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
Interface for controllers.
Wocra Controller based on LQP solver for the ocra framework.
Define torque limit constraint for wOcra controller.
Define base class that can be used as constraints in wOcra controller.