Changeset 11
- Timestamp:
- 02/01/10 19:28:17 (12 years ago)
- Location:
- rc
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
rc/puzzlebox_brainstorms_client.py
r7 r11 11 11 # For more information please refer to http://www.gnu.org/copyleft/gpl.htm 12 12 # 13 # Last Update: 2010.0 1.2814 # 15 ##################################################################### 16 17 import os, sys , time13 # Last Update: 2010.02.01 14 # 15 ##################################################################### 16 17 import os, sys 18 18 import cPickle as pickle 19 19 -
rc/puzzlebox_brainstorms_configuration.py
r8 r11 11 11 # For more information please refer to http://www.gnu.org/copyleft/gpl.htm 12 12 # 13 # Last Update: 2010.0 1.2813 # Last Update: 2010.02.01 14 14 # 15 15 ##################################################################### … … 82 82 NO_REPLY_WAIT = 10 # how many seconds before considering a component dead 83 83 84 85 ##################################################################### 86 # Client configuration 87 ##################################################################### 88 89 DISPLAY_WINDOW_X_COORDINATE = 0 90 DISPLAY_WINDOW_Y_COORDINATE = 0 91 DISPLAY_WINDOW_X_DIMENSION = 800 92 DISPLAY_WINDOW_Y_DIMENSION = 480 93 94 #WINDOW_BACKGROUND_COLOR = (255,255,255) # white background 95 #WINDOW_BACKGROUND_COLOR = (128,128,128) # grey background 96 #WINDOW_BACKGROUND_COLOR = (64,64,64) # dark grek background 97 WINDOW_BACKGROUND_COLOR = (0,0,0) # black background 98 99 IMAGE_DIRECTORY = os.path.join(os.getcwd(), 'images') 100 -
rc/puzzlebox_brainstorms_server.py
r8 r11 11 11 # For more information please refer to http://www.gnu.org/copyleft/gpl.htm 12 12 # 13 # Last Update: 2010.0 1.2813 # Last Update: 2010.02.01 14 14 # 15 15 ##################################################################### … … 63 63 response = '%s instruction received' % instruction['command'] 64 64 65 if self.DEBUG: 66 print response 65 67 66 68 if 'information' in instruction: … … 75 77 elif instruction['command'] == 'drive_forward': 76 78 command = 'python puzzlebox_brainstorms_rc.py --command=drive_forward' 77 os.system(command) 79 os.system(command) 78 80 79 81 elif instruction['command'] == 'drive_reverse':
Note: See TracChangeset
for help on using the changeset viewer.