Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Feb 17, 2025
1 parent d448e35 commit d034d0d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/skrobot_tests/test_console_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ def test_convert_urdf_mesh(self):
os.environ['SKROBOT_CACHE_DIR'] = tmp_output
urdfpath = fetch_urdfpath()

# fetch_0.urdf will be created after running 'convert-urdf-mesh {urdfpath}'
out_urdfpath = osp.join(osp.dirname(urdfpath), 'fetch_0.urdf')
out_stl_urdfpath = osp.join(osp.dirname(urdfpath), 'fetch_stl.urdf')
out_stl_urdfpath = osp.join(
osp.dirname(urdfpath), 'fetch_stl.urdf')

cmds = [
'convert-urdf-mesh {}'.format(urdfpath),
'convert-urdf-mesh {} --voxel-size 0.001'.format(urdfpath),
'convert-urdf-mesh {} -d 0.98'.format(urdfpath),
# inplace option should be used last
'convert-urdf-mesh {} --output {} -f stl'.format(out_urdfpath, out_stl_urdfpath),
'convert-urdf-mesh {} --output {} -f stl'.format(
out_urdfpath, out_stl_urdfpath),
'convert-urdf-mesh {} --inplace'.format(out_urdfpath),
]

Expand All @@ -37,4 +38,4 @@ def test_convert_urdf_mesh(self):
print('Executing {}'.format(cmd))
result = subprocess.run(cmd, shell=True, **kwargs)
print(cmd)
assert result.returncode == 0
assert result.returncode == 0

0 comments on commit d034d0d

Please sign in to comment.