13 linemod_path = osp.expanduser(rospy.get_param(
'~linemod_path'))
14 pcd_path = osp.expanduser(rospy.get_param(
'~pcd_path'))
15 yaml_path = osp.expanduser(rospy.get_param(
'~yaml_path'))
16 timeout = rospy.Duration(rospy.get_param(
'~timeout', 30.0))
18 start = rospy.Time.now()
19 while (rospy.Time.now() - start < timeout
and 20 (
not osp.exists(linemod_path)
or 21 not osp.exists(pcd_path)
or 22 not osp.exists(yaml_path))):
24 self.assertTrue(osp.isfile(linemod_path))
25 self.assertTrue(osp.isfile(pcd_path))
26 self.assertTrue(osp.isfile(yaml_path))
29 if __name__ ==
'__main__':
30 rospy.init_node(
'test_linemod_trainer')
32 'jsk_pcl_ros',
'test_linemod_trainer', TestLINEMODTrainer)
def test_linemod_trainer(self)