|
wbc
|
Implementation of a Cartesian velocity task. More...
#include <SpatialVelocityTask.hpp>
Public Member Functions | |
| SpatialVelocityTask (TaskConfig config, RobotModelPtr robot_model, const std::string &tip_frame) | |
| virtual | ~SpatialVelocityTask ()=default |
| virtual void | update () override |
| Compute the cartesian task matrix A. | |
| void | setReference (const types::Twist &ref) |
| Update the Cartesian reference input for this task. | |
| const std::string & | tipFrame () |
| Returns the tip frame. This is the tip of kinematic chain used by the task. | |
Public Member Functions inherited from wbc::Task | |
| Task () | |
| Default constructor. | |
| Task (TaskConfig config, RobotModelPtr robot_model, uint nv, TaskType type) | |
| Resizes all members. | |
| ~Task () | |
| void | reset () |
| Reset task variables to initial values. | |
| void | setWeights (const Eigen::VectorXd &weights) |
| Set task weights. | |
| void | setActivation (const double activation) |
| Set task activation. | |
Protected Attributes | |
| Eigen::MatrixXd | rot_mat |
| std::string | tip_frame |
Protected Attributes inherited from wbc::Task | |
| RobotModelPtr | robot_model |
Additional Inherited Members | |
Public Attributes inherited from wbc::Task | |
| TaskConfig | config |
| Eigen::VectorXd | y_ref |
| Eigen::VectorXd | weights |
| double | activation |
| Eigen::MatrixXd | A |
| Eigen::MatrixXd | Aw |
| uint | nv |
| uint | nj |
| TaskType | type |
Implementation of a Cartesian velocity task.
| wbc::SpatialVelocityTask::SpatialVelocityTask | ( | TaskConfig | config, |
| RobotModelPtr | robot_model, | ||
| const std::string & | tip_frame ) |
|
virtualdefault |
| void wbc::SpatialVelocityTask::setReference | ( | const types::Twist & | ref | ) |
Update the Cartesian reference input for this task.
| ref | Reference input for this task. Only the velocity part is relevant (Must have a valid linear and angular velocity!) |
|
inline |
Returns the tip frame. This is the tip of kinematic chain used by the task.
|
overridevirtual |
Compute the cartesian task matrix A.
| robot_model | Pointer to the robot model from which get the state and compute the cartesian task matrix A |
Implements wbc::Task.
|
protected |
|
protected |