1 #include "header/task.h" 13 std::string robotName, std::string taskName)
16 this->dimension = dimension;
18 this->eqType = eqType;
19 this->robotName = robotName;
20 this->taskName = taskName;
24 J = CMAT::Matrix::Zeros(dimension, dof);
25 A = CMAT::Matrix::Zeros(dimension, dimension);
26 reference = CMAT::Matrix::Zeros(dimension,1);
27 error = CMAT::Matrix::Zeros(dimension,1);
29 threshold = THRESHOLD_DEFAULT;
30 lambda = LAMBDA_DEFAULT;
38 std::cout <<
"[" << robotName <<
"]["<< taskName <<
"]" <<
" Created" << std::endl;
43 std::string Task::getName(){
return this->taskName;}
44 CMAT::Matrix Task::getJacobian(){
return this->J;}
45 CMAT::Matrix Task::getActivation(){
return this->A;}
46 CMAT::Matrix Task::getReference(){
return this->reference;}
47 CMAT::Matrix Task::getError(){
return this->error;}
83 void Task::setFlag_G(
int v){this->flag_G = v;}
84 void Task::setFlag_W(
int v){this->flag_W = v;}
85 void Task::setMu_G(
double v){this->mu_G = v;}
86 void Task::setMu_W(
double v){this->mu_W = v;}
89 int Task::getThreshold(){
return this->threshold;}
90 int Task::getLambda(){
return this->lambda;}
91 int Task::getDof(){
return this->dof;}
92 int Task::getDimension(){
return this->dimension;}
int & getFlag_G()
Task::getFlag_G Various getter methods.
int & getFlag_W()
Task::getFlag_W Various getter methods.
Task(int dimension, bool eqType, std::string robotName, std::string taskName)
Task::Task Constructor called by sons Constructor. without argument dof, default dof from define...
double & getMu_G()
Task::getMu_G Various getter methods.
double & getMu_W()
Task::getMu_W Various getter methods.