resibots / inria_wbc

Generic whole-body controller based on quadratic programming
14 stars 0 forks source link

fixe q and dq integration in Controller::_solve when using closed_loop #61

Closed Timothee-ANNE closed 3 years ago

Timothee-ANNE commented 3 years ago

There was an error in controller.cpp in the function Controller::_solve(const Eigen::VectorXd& q, const Eigen::VectorXd& dq). q and dq were not used to update vtsid and qtsid. Before: vtsid += dt_ dv; qtsid = pinocchio::integrate(robot_->model(), qtsid, dt_ vtsid); After correction: vtsid = dq + dt_ dv; qtsid = pinocchio::integrate(robot->model(), q, dt vtsid);

dalinel commented 3 years ago

Thank you!