41 std::vector<Eigen::VectorXd> q_vec;
45 pos_B.resize(4, pos_B.front());
47 for (
int ee=0; ee<pos_B.size(); ++ee) {
54 ee_pos_H = pos_B.at(ee);
57 ee_pos_H = pos_B.at(ee).cwiseProduct(Eigen::Vector3d(1,-1,1));
60 ee_pos_H = pos_B.at(ee).cwiseProduct(Eigen::Vector3d(-1,1,1));
64 ee_pos_H = pos_B.at(ee).cwiseProduct(Eigen::Vector3d(-1,-1,1));
Vector3d GetJointAngles(const Vector3d &ee_pos_H, KneeBend bend=Forward) const
Returns the joint angles to reach a Cartesian foot position.
HyqlegInverseKinematics leg
Joints GetAllJointAngles(const EndeffectorsPos &pos_b) const override
Returns joint angles to reach for a specific foot position.