7 offset = Eigen::Displacementd::Identity();
17 if (bottle.get(i).asInt() == TASK_BUILDER_OPTIONS_BOTTLE)
19 taskName = bottle.get(++i).asString();
20 taskType = bottle.get(++i).asString();
21 segment = bottle.get(++i).asString();
23 kp = bottle.get(++i).asDouble();
24 kd = bottle.get(++i).asDouble();
25 weight = bottle.get(++i).asDouble();
26 mu = bottle.get(++i).asDouble();
27 margin = bottle.get(++i).asDouble();
29 usesYarp = bottle.get(++i).asBool();;
45 int numberOfJointNames = bottle.get(++i).asInt();
46 for (
auto j = 0; j < numberOfJointNames; ++j) {
47 jointNames.push_back(bottle.get(++i).asString());
62 bottle.addInt(TASK_BUILDER_OPTIONS_BOTTLE);
90 bottle.addString(name);
Eigen::VectorXd indexWeightVector
void pourEigenVectorXiIntoBottle(const Eigen::VectorXi &vec, yarp::os::Bottle &bottle)
Eigen::VectorXd weightVector
void putIntoBottle(yarp::os::Bottle &bottle)
Eigen::VectorXi jointIndexes
bool useWeightVectorConstructor
yarp::os::Bottle trimBottle(const yarp::os::Bottle &bottle, int startIndex, int endIndex=-1)
void pourDisplacementdIntoBottle(const Eigen::Displacementd &disp, yarp::os::Bottle &bottle)
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
Eigen::VectorXi pourBottleIntoEigenVectorXi(yarp::os::Bottle bottle, int &indexesToSkip)
Eigen::VectorXd nameDesired
std::vector< std::string > jointNames
bool extractFromBottle(yarp::os::Bottle &bottle, int &sizeOfOptions)
Eigen::VectorXd nameWeightVector
void pourEigenVectorIntoBottle(const Eigen::VectorXd &vec, yarp::os::Bottle &bottle)
Eigen::VectorXd pourBottleIntoEigenVector(yarp::os::Bottle bottle, int &indexesToSkip)
Eigen::Displacementd pourBottleIntoDisplacementd(yarp::os::Bottle bottle, int &indexesToSkip)
Eigen::Displacementd offset
Eigen::VectorXd indexDesired