diff --git a/bindings/python/tests/pyopensot_operators_tests.py b/bindings/python/tests/pyopensot_operators_tests.py index c275d849..db09981c 100644 --- a/bindings/python/tests/pyopensot_operators_tests.py +++ b/bindings/python/tests/pyopensot_operators_tests.py @@ -4,10 +4,12 @@ import pyopensot as pysot import numpy as np import unittest +import os utest = unittest.TestCase() -urdf = open(f'/home/enrico/catkin_ws/src/franka_cartesio_config/urdf/panda.urdf', 'r').read() +urdf_path = os.getcwd() + '/panda.urdf' +urdf = open(urdf_path, 'r').read() model = xbi.ModelInterface2(urdf) q = [0., -0.7, 0., -2.1, 0., 1.4, 0.] @@ -135,4 +137,4 @@ S12 = C3/p S14 = S11/S12 for i in range(0,4): - utest.assertEqual(S4.getStack()[i].getTaskID(), S14.getStack()[i].getTaskID()) \ No newline at end of file + utest.assertEqual(S4.getStack()[i].getTaskID(), S14.getStack()[i].getTaskID())