10 from __future__
import print_function
21 Drop in replacement for ROSTestLaunchParent that lets us manage 25 def __init__(self, run_id, config, roslaunch_files, port):
27 raise Exception(
"config not initialized")
31 super(RoconTestLaunchParent, self).
__init__(run_id, roslaunch_files, is_core=
False, port=port, is_rostest=
True)
40 initializes self.config and xmlrpc infrastructure 42 self._start_infrastructure()
46 if self.runner
is not None:
49 self._stop_infrastructure()
53 perform launch of nodes, does not launch tests. rostest_parent 54 follows a different pattern of init/run than the normal 55 roslaunch, which is why it does not reuse start()/spin() 57 if self.runner
is not None:
58 return self.runner.launch()
60 raise Exception(
"no runner to launch")
64 run the test, blocks until completion 66 if self.runner
is not None:
68 return self.runner.run_test(test)
70 raise Exception(
"no runner")
def __init__(self, run_id, config, roslaunch_files, port)