When calling ctl.postureTask->reset();, the reference velocity and acceleration are not reset. This means we have to manually do:
ctl.postureTask->refAccel(Eigen::VectorXd::Zero(jointNumber));
ctl.postureTask->refVel(Eigen::VectorXd::Zero(jointNumber));
Is this the intended behavior? If not, it might be useful for reset() to include resetting these references to zero as well to avoid unexpected motion or controller behavior after reset.