Skip to content

Commit bdb1853

Browse files
authored
Merge branch 'UM-ARM-Lab:master' into add-ik-test-cases
2 parents 6a4e8e9 + f661187 commit bdb1853

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_kinematics.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,13 @@ def test_fk_partial_batched():
281281

282282

283283
def test_ur5_fk():
284-
pk_chain = pk.build_serial_chain_from_urdf(open('ur5.urdf').read(), 'ee_link', 'base_link')
284+
urdf = os.path.join(TEST_DIR, "ur5.urdf")
285+
pk_chain = pk.build_serial_chain_from_urdf(open(urdf).read(), 'ee_link', 'base_link')
285286
th = [0.0, -math.pi / 4.0, 0.0, math.pi / 2.0, 0.0, math.pi / 4.0]
286287

287288
try:
288289
import ikpy.chain
289-
ik_chain = ikpy.chain.Chain.from_urdf_file('ur5.urdf',
290+
ik_chain = ikpy.chain.Chain.from_urdf_file(urdf,
290291
active_links_mask=[False, True, True, True, True, True, True, False])
291292
ik_ret = ik_chain.forward_kinematics([0, *th, 0])
292293
except ImportError:

0 commit comments

Comments
 (0)