1 #ifndef _OCRA_TASK_API_H_ 2 #define _OCRA_TASK_API_H_ 39 Task(
const std::string& name, std::shared_ptr<Model> model, Feature::Ptr feature, Feature::Ptr featureDes);
40 Task(
const std::string& name, std::shared_ptr<Model> model, Feature::Ptr feature);
122 void setWeight(
const Eigen::VectorXd& weight);
123 const Eigen::VectorXd&
getWeight()
const;
126 const Eigen::VectorXd&
getOutput()
const;
127 const Eigen::VectorXd&
getError()
const;
130 const Eigen::VectorXd&
getEffort()
const;
152 std::shared_ptr<Pimpl> pimpl;
void doSetFrictionCoeff()
const Eigen::MatrixXd & getJacobian() const
void doDeactivateAsObjective()
Classes that represent frames.
void setDamping(double B)
void setDesiredTaskState(const TaskState &newDesiredTaskState)
const Eigen::VectorXd & getErrorDot() const
Declaration file of the SquaredLinearFunction class.
Define the internal solver class that can be used in the wOcra controller.
Declaration file of the Model class.
bool isActiveAsObjective() const
const Eigen::MatrixXd & getDamping() const
void activateAsConstraint()
const Eigen::VectorXd & getError() const
void doActivateAsConstraint()
void setFrictionConstraintOffset(const Eigen::Vector3d &offset)
void doActivateContactMode()
A class hierarchy to compute task errors based on control frames.
const Eigen::Vector3d & getFrictionConstraintOffset() const
void setTaskType(Task::TYPETASK newTaskType)
void updateAccelerationTask()
const Eigen::MatrixXd & getDesiredMassInverse() const
void disconnectFromController()
#define DEFINE_CLASS_POINTER_TYPEDEFS(Class)
const Eigen::VectorXd & getErrorDdot() const
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
Task::META_TASK_TYPE getMetaTaskType()
bool isBodyContactConstraint() const
Feature::Ptr getFeature() const
void addContactPointInModel()
void updateCoMMomentumTask()
Task(const std::string &name, std::shared_ptr< Model > model, Feature::Ptr feature, Feature::Ptr featureDes)
void doDeactivateAsConstraint()
std::string getMetaTaskTypeAsString()
void setAutoGains(double freq)
void checkIfConnectedToController() const
Declaration file of the WeightedSquareDistanceFunction class.
void setDesiredTaskStateDirect(const TaskState &newDesiredTaskState)
Create a linear function that represents the dynamic equation of motion.
Declaration file of the LinearizedCoulombFunction class.
bool isActiveAsConstraint() const
bool isDesiredMassTheActualOne() const
Task::TYPETASK getTaskType()
void setHierarchyLevel(int level)
void setMetaTaskType(Task::META_TASK_TYPE newMetaTaskType)
const Eigen::VectorXd & getComputedForce() const
double getFrictionCoeff() const
void setMargin(double margin)
void setWeight(double weight)
void deactivateContactMode()
void setStiffness(double K)
bool isPointContactTask() const
void setDesiredMass(double Md)
const Eigen::VectorXd & getEffort() const
void doActivateAsObjective()
Feature::Ptr getFeatureDes() const
bool isContactModeActive() const
void setDesiredMassToActualOne()
void doDeactivateContactMode()
void activateAsObjective()
const Eigen::VectorXd & getOutput() const
const Eigen::VectorXd & getWeight() const
void connectToController(std::shared_ptr< OneLevelSolver > _solver, const FullDynamicEquationFunction &dynamicEquation, bool useReducedProblem)
void removeContactPointInModel()
Define base class that can be used as constraints in wOcra controller.
void doGetOutput(Eigen::VectorXd &output) const
TaskState getDesiredTaskState()
const Eigen::MatrixXd & getStiffness() const
void activateContactMode()
const Eigen::MatrixXd & getDesiredMass() const
void setFrictionCoeff(double coeff)