From b81dfbbc48e929420a83223d27fd5ffe1908f2e6 Mon Sep 17 00:00:00 2001 From: taylor howell Date: Wed, 14 Jun 2023 12:19:58 -0600 Subject: [PATCH] fix python type_error mj_differentiatePos, mj_integratePos --- python/mujoco/functions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mujoco/functions.cc b/python/mujoco/functions.cc index f9a0190e..0de473cf 100644 --- a/python/mujoco/functions.cc +++ b/python/mujoco/functions.cc @@ -515,7 +515,7 @@ PYBIND11_MODULE(_functions, pymodule) { mjtNum dt, Eigen::Ref qpos1, Eigen::Ref qpos2) { if (qvel.size() != m->nv) { - throw py::type_error("qvel should be of size nq"); + throw py::type_error("qvel should be of size nv"); } if (qpos1.size() != m->nq) { throw py::type_error("qpos1 should be of size nq"); @@ -534,7 +534,7 @@ PYBIND11_MODULE(_functions, pymodule) { throw py::type_error("qpos should be of size nq"); } if (qvel.size() != m->nv) { - throw py::type_error("qvel should be of size nq"); + throw py::type_error("qvel should be of size nv"); } return InterceptMjErrors(::mj_integratePos)( m, qpos.data(), qvel.data(), dt);