10 #ifndef __GHCJTCTRL_H__ 11 #define __GHCJTCTRL_H__ 52 void takeIntoAccountGravity(
bool useGrav);
54 void writePerformanceInStream(std::ostream& myOstream,
bool addCommaAtEnd)
const;
55 std::string getPerformances()
const;
62 GHCJTTask& createGHCJTTask(
const std::string& name, Feature::Ptr feature, Feature::Ptr featureDes)
const;
63 GHCJTTask& createGHCJTTask(
const std::string& name, Feature::Ptr feature)
const;
64 GHCJTTask& createGHCJTContactTask(
const std::string& name, PointContactFeature::Ptr feature,
double mu,
double margin)
const;
66 void setActiveTaskVector();
67 void doUpdateAugmentedJacobian();
68 void doUpdateProjector();
69 std::vector< GHCJTTask* >& getActiveTask();
70 int getNbActiveTask()
const;
71 int getTotalActiveTaskDimensions()
const;
73 void initPriorityMatrix();
75 std::pair<Eigen::VectorXd, Eigen::MatrixXd> sortRows(
const Eigen::MatrixXd &C,
const Eigen::MatrixXd &J);
76 void computeProjector(
const Eigen::MatrixXd &C,
const Eigen::MatrixXd &J, Eigen::MatrixXd& projector);
77 void computeTaskiProjector(
const Eigen::MatrixXd &J, Eigen::MatrixXd& projector);
78 void setTaskProjectors(Eigen::MatrixXd& param);
86 virtual void doComputeOutput(Eigen::VectorXd& tau);
87 virtual void doAddTask(
Task& task);
88 virtual void doAddContactSet(
const ContactSet& contacts);
91 virtual Task* doCreateTask(
const std::string& name, Feature::Ptr feature, Feature::Ptr featureDes)
const;
92 virtual Task* doCreateTask(
const std::string& name, Feature::Ptr feature)
const;
93 virtual Task* doCreateContactTask(
const std::string& name, PointContactFeature::Ptr feature,
double mu,
double margin)
const;
98 boost::shared_ptr<Pimpl> pimpl;
Define task class for GHCJT controller. It inherits from the task class defined in the ocra framework...
Define the internal solver class that can be used in the wOcra controller.
Declaration file of the Model class.
gOcra Controller based on LQP solver for the ocra framework.
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
Interface for controllers.
A generic abstract task for the GHCJT controller.
A generic abstract class the solvers that can be used in the wOcra Controller.