1 #include "header/vehicleNullVelTask.h" 3 VehicleNullVelTask::VehicleNullVelTask(
int dim,
bool eqType, std::string robotName)
4 :
Task(dim, eqType, robotName,
"VEHICLE_NULL_VEL") {
16 setJacobian(robInfo->robotState.
wTv_eigen);
28 int VehicleNullVelTask::setJacobian(Eigen::Matrix4d wTv_eigen){
30 Eigen::MatrixXd jacobian_eigen = Eigen::MatrixXd::Zero(dimension, dof);
31 Eigen::Matrix3d wRv_eigen = wTv_eigen.topLeftCorner(3,3);
35 jacobian_eigen.block<3,3>(0,4) = wRv_eigen;
40 jacobian_eigen.bottomRightCorner(3,3) = wRv_eigen;
47 this->J = CMAT::Matrix(dimension, dof, jacobian_eigen.data());
53 int VehicleNullVelTask::setActivation(){
56 std::fill_n(vectDiag, 6, 1);
57 this->A.SetDiag(vectDiag);
62 int VehicleNullVelTask::setReference(){
64 this->reference = CMAT::Matrix::Zeros(dimension, 1);
int updateMatrices(struct Infos *const robInfo)
VehicleNull::updateMatrices overriden of the pure virtual method of Task parent class.
Eigen::Matrix4d wTv_eigen
Transforms.
ABSTRACT class task. Each task is a derived class of this class. It contains all the variable that th...