wbc
SpatialVelocityTask.hpp
Go to the documentation of this file.
1#ifndef WBC_TASKS_SPATIALVELOCITYTASK_HPP
2#define WBC_TASKS_SPATIALVELOCITYTASK_HPP
3
4#include "../core/Task.hpp"
5
6namespace wbc{
7
12protected:
13 Eigen::MatrixXd rot_mat;
14 std::string tip_frame;
15 std::string ref_frame;
16public:
19 const std::string &tip_frame,
20 const std::string &ref_frame);
21 virtual ~SpatialVelocityTask() = default;
22
27 virtual void update() override;
28
33 void setReference(const types::Twist& ref);
34
36 const std::string &tipFrame(){return tip_frame;}
37
40 const std::string& refFrame(){return ref_frame;}
41};
42
43typedef std::shared_ptr<SpatialVelocityTask> SpatialVelocityTaskPtr;
44
45} // namespace wbc
46
47#endif
void setReference(const types::Twist &ref)
Update the Cartesian reference input for this task.
Definition SpatialVelocityTask.cpp:40
std::string ref_frame
Definition SpatialVelocityTask.hpp:15
const std::string & tipFrame()
Returns the tip frame. This is the tip of kinematic chain used by the task.
Definition SpatialVelocityTask.hpp:36
SpatialVelocityTask(TaskConfig config, RobotModelPtr robot_model, const std::string &tip_frame, const std::string &ref_frame)
Definition SpatialVelocityTask.cpp:5
virtual void update() override
Compute the cartesian task matrix A.
Definition SpatialVelocityTask.cpp:12
Eigen::MatrixXd rot_mat
Definition SpatialVelocityTask.hpp:13
const std::string & refFrame()
Returns the reference frame. This is the frame in which the task reference is assumed to be given....
Definition SpatialVelocityTask.hpp:40
virtual ~SpatialVelocityTask()=default
std::string tip_frame
Definition SpatialVelocityTask.hpp:14
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 Twist.hpp:8
Definition ContactsAccelerationConstraint.cpp:3
std::shared_ptr< RobotModel > RobotModelPtr
Definition RobotModel.hpp:315
std::shared_ptr< SpatialVelocityTask > SpatialVelocityTaskPtr
Definition SpatialVelocityTask.hpp:43