Changeset 11


Ignore:
Timestamp:
02/01/10 19:28:17 (11 years ago)
Author:
sc
Message:

server:

  • Debugging output added

configuration:

  • Client Interface configuration defaults added

client:

  • time module import removed

client_interface:

  • initial checkin
Location:
rc
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • rc/puzzlebox_brainstorms_client.py

    r7 r11  
    1111# For more information please refer to http://www.gnu.org/copyleft/gpl.htm 
    1212# 
    13 # Last Update: 2010.01.28 
    14 # 
    15 ##################################################################### 
    16  
    17 import os, sys, time 
     13# Last Update: 2010.02.01 
     14# 
     15##################################################################### 
     16 
     17import os, sys 
    1818import cPickle as pickle 
    1919 
  • rc/puzzlebox_brainstorms_configuration.py

    r8 r11  
    1111# For more information please refer to http://www.gnu.org/copyleft/gpl.htm 
    1212# 
    13 # Last Update: 2010.01.28 
     13# Last Update: 2010.02.01 
    1414# 
    1515##################################################################### 
     
    8282NO_REPLY_WAIT = 10 # how many seconds before considering a component dead 
    8383 
     84 
     85##################################################################### 
     86# Client configuration 
     87##################################################################### 
     88 
     89DISPLAY_WINDOW_X_COORDINATE = 0 
     90DISPLAY_WINDOW_Y_COORDINATE = 0 
     91DISPLAY_WINDOW_X_DIMENSION = 800 
     92DISPLAY_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 
     97WINDOW_BACKGROUND_COLOR = (0,0,0)       # black background 
     98 
     99IMAGE_DIRECTORY = os.path.join(os.getcwd(), 'images') 
     100 
  • rc/puzzlebox_brainstorms_server.py

    r8 r11  
    1111# For more information please refer to http://www.gnu.org/copyleft/gpl.htm 
    1212# 
    13 # Last Update: 2010.01.28 
     13# Last Update: 2010.02.01 
    1414# 
    1515##################################################################### 
     
    6363                        response = '%s instruction received' % instruction['command'] 
    6464                         
     65                        if self.DEBUG: 
     66                                print response 
    6567                         
    6668                        if 'information' in instruction: 
     
    7577                        elif instruction['command'] == 'drive_forward': 
    7678                                command = 'python puzzlebox_brainstorms_rc.py --command=drive_forward' 
    77                                 os.system(command)                       
     79                                os.system(command) 
    7880                         
    7981                        elif instruction['command'] == 'drive_reverse': 
Note: See TracChangeset for help on using the changeset viewer.