3 #include <ParamHandler/ParamHandler.hpp> 4 #include <Configuration.h> 8 : _b_first_visit(true),
37 ctrl->
commands[leg].tauFeedForward[jidx] = 0.;
38 ctrl->
commands[leg].qDes[jidx] = jpos[3 * leg + jidx];
39 ctrl->
commands[leg].qdDes[jidx] = 0.;
59 for (
int leg(0); leg < 4; ++leg) {
60 for (
int jidx(0); jidx < 3; ++jidx) {
61 ini[3 * leg + jidx] = ctrl->
datas[leg].q[jidx];
78 ParamHandler handler(THIS_COM
"config/initial_jpos_ctrl.yaml");
80 handler.getVector<T>(
"mid_jpos",
_mid_jpos);
bool IsInitialized(LegController< T > *)
std::vector< T > _ini_jpos
BS_Basic< T, cheetah::num_act_joint, 3, 1, 2, 2 > _jpos_trj
constexpr size_t num_act_joint
LegControllerData< T > datas[4]
constexpr size_t num_leg_joint
bool getCurvePoint(T u, T *ret)
JPosInitializer(T end_time)
std::vector< T > _target_jpos
bool SetParam(T *init, T *fin, T **middle_pt, T fin_time)
std::vector< T > _mid_jpos
void _UpdateInitial(const LegController< T > *ctrl)
LegControllerCommand< T > commands[4]