From 075e068fe23005df5e71a565783d4f46311d0d57 Mon Sep 17 00:00:00 2001 From: Carlos Mastalli <carlos.mastalli@gmail.com> Date: Mon, 3 Feb 2020 12:28:49 +0000 Subject: [PATCH] [bugfix] Compatibility with numpy matrix too --- python/example_robot_data/robots_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/example_robot_data/robots_loader.py b/python/example_robot_data/robots_loader.py index 92decca..47c55b6 100644 --- a/python/example_robot_data/robots_loader.py +++ b/python/example_robot_data/robots_loader.py @@ -154,7 +154,7 @@ def loadTalosLegs(): robot.visual_data = pinocchio.GeometryData(g2) # Load SRDF file - robot.q0 = np.array(np.resize(robot.q0, robot.model.nq)).T + robot.q0 = robot.q0[:robot.model.nq] readParamsFromSrdf(robot, modelPath + SRDF_SUBPATH, False) assert ((m2.armature[:6] == 0.).all()) -- GitLab