wbc
ContactForceTask.hpp
Go to the documentation of this file.
1#ifndef WBC_TASKS_CONTACTFORCVETASK_HPP
2#define WBC_TASKS_CONTACTFORCVETASK_HPP
3
4#include "../core/Task.hpp"
5
6namespace wbc{
7
8class ContactForceTask : public Task{
9protected:
10 Eigen::MatrixXd ref_frame_rotation;
11 const std::string ref_frame;
12public:
15 const std::string &ref_frame);
16 virtual ~ContactForceTask() = default;
17
22 virtual void update() override;
23
28 void setReference(const types::Wrench& ref);
29
32 const std::string& refFrame(){return ref_frame;}
33};
34
35typedef std::shared_ptr<ContactForceTask> ContactForceTaskPtr;
36
37}
38
39#endif // CARTESIANWRENCHTASK_HPP
ContactForceTask(TaskConfig config, RobotModelPtr robot_model, const std::string &ref_frame)
Definition ContactForceTask.cpp:7
virtual void update() override
Compute the cartesian task matrix A.
Definition ContactForceTask.cpp:14
virtual ~ContactForceTask()=default
Eigen::MatrixXd ref_frame_rotation
Definition ContactForceTask.hpp:10
const std::string ref_frame
Definition ContactForceTask.hpp:11
void setReference(const types::Wrench &ref)
Update the Cartesian reference input for this task.
Definition ContactForceTask.cpp:38
const std::string & refFrame()
Returns the reference frame. This is the frame in which the task reference is assumed to be given....
Definition ContactForceTask.hpp:32
Defines a task in the whole body control problem.
Definition TaskConfig.hpp:24
Task()
Default constructor.
Definition Task.cpp:5
RobotModelPtr robot_model
Definition Task.hpp:16
TaskConfig config
Definition Task.hpp:53
Definition Wrench.hpp:8
Definition ContactsAccelerationConstraint.cpp:3
std::shared_ptr< ContactForceTask > ContactForceTaskPtr
Definition ContactForceTask.hpp:35
std::shared_ptr< RobotModel > RobotModelPtr
Definition RobotModel.hpp:315