Skip to content

Commit

Permalink
[Ninja][Remote Access] [WIP] Create script to launch bringup.launch.
Browse files Browse the repository at this point in the history
  • Loading branch information
sugihara-16 committed Nov 15, 2024
1 parent 9083e1e commit 1a69cde
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions robots/ninja/script/bringup.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 1a69cde

Please sign in to comment.