Skip to content

Commit

Permalink
removed hardcoeded path in one python test
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMingo committed Oct 10, 2024
1 parent 74fbec0 commit ad2e400
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bindings/python/tests/pyopensot_operators_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.]
Expand Down Expand Up @@ -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())
utest.assertEqual(S4.getStack()[i].getTaskID(), S14.getStack()[i].getTaskID())

0 comments on commit ad2e400

Please sign in to comment.