11 #include <Tasks/QPTasks.h>
28 void reset()
override;
38 void dimWeight(
const Eigen::VectorXd & dimW)
override;
40 Eigen::VectorXd dimWeight()
const override;
47 const std::vector<std::string> & activeJointsName,
48 const std::map<std::string, std::vector<std::array<int, 2>>> & activeDofs = {})
override;
55 const std::vector<std::string> & unactiveJointsName,
56 const std::map<std::string, std::vector<std::array<int, 2>>> & unactiveDofs = {})
override;
64 Eigen::VectorXd eval()
const override;
66 Eigen::VectorXd speed()
const override;
69 void posture(
const std::vector<std::vector<double>> & p);
75 void refVel(
const Eigen::VectorXd & refVel) noexcept;
78 const Eigen::VectorXd & refVel()
const noexcept;
84 void refAccel(
const Eigen::VectorXd & refAccel) noexcept;
87 const Eigen::VectorXd & refAccel()
const noexcept;
90 std::vector<std::vector<double>> posture()
const;
93 void jointGains(
const mc_solver::QPSolver & solver,
const std::vector<tasks::qp::JointGains> & jgs);
96 void jointStiffness(
const mc_solver::QPSolver & solver,
const std::vector<tasks::qp::JointStiffness> & jss);
99 void jointWeights(
const std::map<std::string, double> & jws);
106 void target(
const std::map<std::string, std::vector<double>> & joints);
115 void stiffness(
double s);
118 double stiffness()
const;
125 void damping(
double d);
128 double damping()
const;
137 void setGains(
double stiffness,
double damping);
140 void weight(
double w);
143 double weight()
const;
146 bool inSolver()
const;
161 bool inSolver_ =
false;
164 unsigned int rIndex_;
177 std::vector<std::vector<double>> posture_;
179 std::unordered_map<std::string, std::vector<int>> mimics_;
181 Eigen::VectorXd eval_;
183 Eigen::VectorXd speed_;