-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathQuickBotRun.py
More file actions
executable file
·39 lines (30 loc) · 884 Bytes
/
Copy pathQuickBotRun.py
File metadata and controls
executable file
·39 lines (30 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python
"""
@brief Run QuickBot class for Beaglebone Black
@author Rowland O'Flaherty (rowlandoflaherty.com)
@date 02/07/2014
@version: 1.0
@copyright: Copyright (C) 2014, Georgia Tech Research Corporation see the LICENSE file included with this software (see LINENSE file)
"""
import sys
import time
from QuickBot import *
print "Running QuickBot"
baseIP = '192.168.7.1'
robotIP = '192.168.7.2'
if len(sys.argv) > 3:
print 'Invalid number of command line arguments.'
print 'Proper syntax:'
print '>> QuickBotRun.py baseIP robotIP'
print 'Example:'
print '>> QuickBotRun.py ', baseIP, ' ', robotIP
sys.exit()
if len(sys.argv) >= 2:
baseIP = sys.argv[1]
if len(sys.argv) >= 3:
robotIP = sys.argv[2]
print 'Running QuickBot Program'
print ' Base IP: ', baseIP
print ' Robot IP: ', robotIP
QB = QuickBot(baseIP, robotIP)
QB.run()