diff --git a/robots/ninja/script/bringup.py b/robots/ninja/script/bringup.py new file mode 100755 index 000000000..8407e1833 --- /dev/null +++ b/robots/ninja/script/bringup.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +import subprocess +import time +import sys + +sys.stdout.reconfigure(line_buffering=True) + +def launch_node(): + process = subprocess.Popen(['roslaunch', 'ninja', 'bringup.launch', 'robot_id:=1']) + print("ok") + return process + +if __name__ == '__main__': + try: + process = launch_node() + while True: + time.sleep(0.1) + + except KeyboardInterrupt: + process.terminate() + process.wait()