41 SetAll(VectorXd::Constant(n_joints_per_leg, value));
45 :
Joints(q_vec.size(), q_vec.front().rows())
48 at(ee) = q_vec.at(ee);
69 for (
auto ee : ee_order) {
82 for (
auto ee : ee_order) {
105 return at(ee)[result.rem];
111 return ToVec()[joint];
void SetAll(const VectorXd &value)
Sets each endeffector to the same value.
std::vector< EndeffectorID > EEOrder
int GetNumJointsPerEE() const
VectorXd & at(EndeffectorID ee)
Read/write access to the endeffector stored at index ee.
VectorXd ToVec() const
Converts joint values to Eigen vector.
double & GetJoint(JointID joint)
void SetFromVec(const VectorXd &q)
Sets joints values from Eigen vector.
Joints(int n_ee, int n_joints_per_ee, double value=0.0)
Constructs joint values all set to value.
Container to access joint values of each endeffectors.
std::vector< EndeffectorID > GetEEsOrdered() const