6 : containsPosition(false)
7 , containsVelocity(false)
8 , containsAcceleration(false)
12 , containsTorque(false)
13 , containsWrench(false)
15 position = Eigen::Displacementd::Identity();
16 velocity = Eigen::Twistd(0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
17 acceleration = Eigen::Twistd(0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
19 q = Eigen::VectorXd::Zero(1);
20 qd = Eigen::VectorXd::Zero(1);
21 qdd = Eigen::VectorXd::Zero(1);
22 torque = Eigen::VectorXd::Zero(1);
24 wrench = Eigen::Wrenchd(0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
33 return this->position;
39 return this->velocity;
45 return this->acceleration;
81 this->position = newPosition;
82 this->containsPosition =
true;
88 this->velocity = newVelocity;
89 this->containsVelocity =
true;
95 this->acceleration = newAcceleration;
96 this->containsAcceleration =
true;
103 this->containsQ =
true;
110 this->containsQd =
true;
117 this->containsQdd =
true;
123 this->torque = newTorque;
124 this->containsTorque =
true;
130 this->wrench = newWrench;
131 this->containsWrench =
true;
136 return this->containsPosition;
141 return this->containsVelocity;
146 return this->containsAcceleration;
151 return this->containsQ;
156 return this->containsQd;
161 return this->containsQdd;
166 return this->containsTorque;
171 return this->containsWrench;
177 if (bottle.get(i).asInt() == TASK_STATE_BOTTLE)
179 this->containsPosition = bottle.get(++i).asBool();
180 this->containsVelocity = bottle.get(++i).asBool();
181 this->containsAcceleration = bottle.get(++i).asBool();
182 this->containsQ = bottle.get(++i).asBool();
183 this->containsQd = bottle.get(++i).asBool();
184 this->containsQdd = bottle.get(++i).asBool();
185 this->containsTorque = bottle.get(++i).asBool();
186 this->containsWrench = bottle.get(++i).asBool();
232 bottle.addInt(TASK_STATE_BOTTLE);
237 bottle.addInt(this->
hasQ());
238 bottle.addInt(this->
hasQd());
239 bottle.addInt(this->
hasQdd());
void setPosition(const Eigen::Displacementd &newPosition)
Eigen::Wrenchd pourBottleIntoWrenchd(yarp::os::Bottle bottle, int &indexesToSkip)
void setTorque(const Eigen::VectorXd &newTorque)
void setAcceleration(const Eigen::Twistd &newAcceleration)
yarp::os::Bottle trimBottle(const yarp::os::Bottle &bottle, int startIndex, int endIndex=-1)
void pourDisplacementdIntoBottle(const Eigen::Displacementd &disp, yarp::os::Bottle &bottle)
Eigen::VectorXd getQdd() const
void setVelocity(const Eigen::Twistd &newVelocity)
void putIntoBottle(yarp::os::Bottle &bottle) const
bool extractFromBottle(const yarp::os::Bottle &bottle, int &sizeOfOptions)
Eigen::VectorXd getQd() const
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
bool hasAcceleration() const
Eigen::VectorXd getQ() const
Eigen::Twistd pourBottleIntoTwistd(yarp::os::Bottle bottle, int &indexesToSkip)
void setQd(const Eigen::VectorXd &newQd)
void pourTwistdIntoBottle(const Eigen::Twistd &twist, yarp::os::Bottle &bottle)
Eigen::VectorXd getTorque() const
void setQdd(const Eigen::VectorXd &newQdd)
Eigen::Wrenchd getWrench() const
void pourEigenVectorIntoBottle(const Eigen::VectorXd &vec, yarp::os::Bottle &bottle)
void setWrench(const Eigen::Wrenchd &newWrench)
Eigen::Twistd getAcceleration() const
void setQ(const Eigen::VectorXd &newQ)
Eigen::Displacementd getPosition() const
Eigen::Twistd getVelocity() const
Eigen::VectorXd pourBottleIntoEigenVector(yarp::os::Bottle bottle, int &indexesToSkip)
void pourWrenchdIntoBottle(const Eigen::Wrenchd &wrench, yarp::os::Bottle &bottle)
Eigen::Displacementd pourBottleIntoDisplacementd(yarp::os::Bottle bottle, int &indexesToSkip)