test_pointcloud_to_stl.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import os.path as osp
4 import unittest
5 
6 import rospy
7 import rostest
8 
9 
10 class TestPointCloudToSTL(unittest.TestCase):
11 
13  stl_path = osp.expanduser(rospy.get_param('~stl_path'))
14  timeout = rospy.Duration(rospy.get_param('timeout', 30.0))
15  start = rospy.Time.now()
16  while rospy.Time.now() - start < timeout and not osp.exists(stl_path):
17  rospy.sleep(1.0)
18  self.assertTrue(osp.isfile(stl_path))
19 
20 
21 if __name__ == '__main__':
22  rospy.init_node('test_pointcloud_to_stl')
23  rostest.rosrun(
24  'jsk_pcl_ros_utils', 'test_pointcloud_to_stl', TestPointCloudToSTL)


jsk_pcl_ros_utils
Author(s): Yohei Kakiuchi
autogenerated on Mon May 3 2021 03:03:15