Skip to content
Snippets Groups Projects
Unverified Commit d7dda028 authored by Carlos Mastalli's avatar Carlos Mastalli Committed by GitHub
Browse files

Merge pull request #203 from cmastalli/topic/urdf

Store urdf file in robot
parents 5a3c77a1 37e2c61b
No related branches found
No related tags found
No related merge requests found
Pipeline #35684 passed
......@@ -143,6 +143,8 @@ class RobotLoader(object):
else:
self.srdf_path = None
self.robot.q0 = pin.neutral(self.robot.model)
root = getModelPath(self.path)
self.robot.urdf = join(root, self.path, self.urdf_subpath, self.urdf_filename)
if self.free_flyer:
self.addFreeFlyerJointLimits()
......
......@@ -17,6 +17,7 @@ class RobotTestCase(unittest.TestCase):
self.assertEqual(robot.model.nq, expected_nq)
self.assertEqual(robot.model.nv, expected_nv)
self.assertTrue(hasattr(robot, "q0"))
self.assertTrue(hasattr(robot, "urdf"))
if pybullet:
self.check_pybullet(urdf, one_kg_bodies)
......
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