30 #ifndef _XPP_STATES_JOINTS_H_ 31 #define _XPP_STATES_JOINTS_H_ 34 #include <Eigen/Dense> 53 using EEOrder = std::vector<EndeffectorID>;
67 explicit Joints (
int n_ee,
int n_joints_per_ee,
double value = 0.0);
75 explicit Joints (
const std::vector<VectorXd>& joints);
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.
virtual ~Joints()=default
Data structure to assign values to each endeffector.