1 #include "header/vehicleConstrainVelTask.h" 3 VehicleConstrainVelTask::VehicleConstrainVelTask(
int dim,
bool eqType, std::string robotName)
4 :
Task(dim, eqType, robotName,
"VEHICLE_CONSTRAIN_VEL") {
27 void VehicleConstrainVelTask::setJacobian(){
29 Eigen::Matrix<double, 6, TOT_DOF> J_eigen = Eigen::Matrix<double, 6, TOT_DOF>::Zero();
30 J_eigen.rightCols(dimension) = Eigen::Matrix<double, 6, 6>::Identity();
32 J = CONV::matrix_eigen2cmat(J_eigen);
37 void VehicleConstrainVelTask::setActivation(){
39 double vectDiag[dimension];
40 std::fill_n(vectDiag, dimension, 1);
41 this->A.SetDiag(vectDiag);
50 void VehicleConstrainVelTask::setReference(std::vector<double> actualVel){
52 for (
int i=1; i<=dimension; ++i){
53 this->reference(i) = actualVel[i-1];
std::vector< double > vehicleVel
vehicle and joint
int updateMatrices(struct Infos *const robInfo)
VehicleConstrainVelTask::updateMatrices overriden of the pure virtual method of Task parent class...
ABSTRACT class task. Each task is a derived class of this class. It contains all the variable that th...