Skip to content
Snippets Groups Projects
Commit 255c3a52 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

allegro has no mass informations

parent 610e48d9
No related branches found
No related tags found
No related merge requests found
Pipeline #24300 passed
......@@ -11,13 +11,13 @@ from example_robot_data import load_full
class RobotTestCase(unittest.TestCase):
def check(self, name, expected_nq, expected_nv, one_kg_bodies=[]):
def check(self, name, expected_nq, expected_nv, one_kg_bodies=[], mass=True):
"""Helper function for the real tests"""
robot, _, urdf, _ = load_full(name, display=False)
self.assertEqual(robot.model.nq, expected_nq)
self.assertEqual(robot.model.nv, expected_nv)
self.assertTrue(hasattr(robot, "q0"))
if pybullet:
if pybullet and mass:
self.check_pybullet(urdf, one_kg_bodies)
def check_pybullet(self, urdf, one_kg_bodies):
......@@ -90,10 +90,10 @@ class RobotTestCase(unittest.TestCase):
self.check("panda", 9, 9)
def test_allegro_right(self):
self.check("allegro_right_hand", 16, 16)
self.check("allegro_right_hand", 16, 16, mass=False)
def test_allegro_left(self):
self.check("allegro_left_hand", 16, 16)
self.check("allegro_left_hand", 16, 16, mass=False)
def test_romeo(self):
self.check("romeo", 62, 61)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment