test_plot_data_to_csv.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 TestPlotDataToCsv(unittest.TestCase):
11 
13  csv_path = osp.expanduser(rospy.get_param('~csv_path'))
14  timeout = rospy.Duration(rospy.get_param('~timeout', 5.0))
15  start = rospy.Time.now()
16  while rospy.Time.now() - start < timeout and not osp.exists(csv_path):
17  rospy.sleep(0.1)
18  self.assertTrue(osp.isfile(csv_path))
19 
20 
21 if __name__ == '__main__':
22  rospy.init_node('test_plot_data_to_csv')
23  rostest.rosrun(
24  'jsk_recognition_msgs', 'test_plot_data_to_csv', TestPlotDataToCsv)


jsk_recognition_msgs
Author(s):
autogenerated on Mon May 3 2021 03:02:56