test_xacro.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import rospkg
4 import subprocess
5 import os
6 
7 r = rospkg.RosPack()
8 path = r.get_path('realsense2_description')
9 
10 
11 def run_xacro_in_file(filename):
12  assert(filename != "")
13  assert(subprocess.check_output(["xacro", "--inorder", "tests/{}".format(filename)],
14  cwd=path))
15 
16 
17 def test_files():
18  for _, _, filenames in os.walk(os.path.join(path, "tests")):
19  for file in filenames:
20  if file.endswith(".xacro"):
21  yield run_xacro_in_file, file
def run_xacro_in_file(filename)
Definition: test_xacro.py:11
def test_files()
Definition: test_xacro.py:17


realsense2_description
Author(s): Sergey Dorodnicov , Doron Hirshberg
autogenerated on Thu May 13 2021 02:33:15