wbc
|
Implementation of a Joint velocity task. More...
#include <JointVelocityTask.hpp>
Public Member Functions | |
JointVelocityTask (TaskConfig config, RobotModelPtr robot_model, const std::vector< std::string > &joint_names) | |
virtual | ~JointVelocityTask ()=default |
virtual void | update () override |
Compute the joint task matrix A. | |
void | setReference (const Eigen::VectorXd &ref) |
Update the Joint reference input for this task. | |
const std::vector< std::string > & | jointNames () |
Returns the vector of joint names used by the 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 | |
std::vector< std::string > | joint_names |
![]() | |
RobotModelPtr | robot_model |
Additional Inherited Members | |
![]() | |
TaskConfig | config |
Eigen::VectorXd | y_ref |
Eigen::VectorXd | y_ref_world |
Eigen::VectorXd | weights |
Eigen::VectorXd | weights_world |
double | activation |
Eigen::MatrixXd | A |
Eigen::MatrixXd | Aw |
uint | nv |
uint | nj |
TaskType | type |
Implementation of a Joint velocity task.
wbc::JointVelocityTask::JointVelocityTask | ( | TaskConfig | config, |
RobotModelPtr | robot_model, | ||
const std::vector< std::string > & | joint_names ) |
|
virtualdefault |
|
inline |
Returns the vector of joint names used by the task.
void wbc::JointVelocityTask::setReference | ( | const Eigen::VectorXd & | ref | ) |
Update the Joint reference input for this task.
ref | Joint reference input. Vector size has ot be same number of task variables. Joint Names have to match the task joint names. Each entry has to have a valid velocity. All other entries will be ignored. |
|
overridevirtual |
Compute the joint task matrix A.
robot_model | Pointer to the robot model from which get the state and compute the joint task matrix A |
Implements wbc::Task.
|
protected |