4 PKG =
'openni_description' 24 Check if check_urdf command passes with the urdf that is generated in 25 the .test file this test case is called from. 27 resulted_urdf_file_relpath =
"./sample_kobuki.urdf" 28 kobuki_xacro_file_path = rospkg.RosPack().get_path(
'openni_description') +
"/test/model/kobuki_description/sample_kobuki.urdf.xacro" 29 self.assertTrue(os.path.isfile(kobuki_xacro_file_path))
32 xacro_output_file.write(xacro_output_memory.toprettyxml(indent=
' '))
33 xacro_output_file.close()
34 self.assertTrue(os.path.isfile(resulted_urdf_file_relpath))
35 self.assertEqual(0, subprocess.call([
"check_urdf", resulted_urdf_file_relpath]))
37 if __name__ ==
'__main__':
39 rostest.rosrun(PKG,
'test_openni_description', TestOpenniDescription)
def process_file(input_file_name, kwargs)
def open_output(output_filename)
def test_urdf_turtlebot(self)