示例#1
0
def about():
    print("-------------------------------------------------------------")
    print("Pyrobot - Python Robotics")
    print("Version:", version())
    print("See: http://PyroRobotics.org")
    print("(c) 2006, PyroRobotics.org. Released under the GNU GPL")
    print("-------------------------------------------------------------")
示例#2
0
def about():
    print "-------------------------------------------------------------"
    print "Pyrobot - Python Robotics"
    print "Version:", version()
    print "See: http://PyroRobotics.org"
    print "(c) 2006, PyroRobotics.org. Released under the GNU GPL"
    print "-------------------------------------------------------------"
示例#3
0
 def run(self, command = []):
    """
    Child classes should do the beef of what they do right here.
    """
    done = 0
    print "========================================================="
    print "Pyrobot, Python Robotics, (c) 2005, D.S. Blank"
    print "http://PyroRobotics.org"
    print "Version " + version()
    print "========================================================="
    while done is not 1:
       print "pyrobot> ", 
       if len(command) > 0:
          print command[0],
          retval = command[0].strip()
          command = command[1:]
       else:
          retval = sys.stdin.readline()
       print ""
       if retval == '':
          done = 1
          continue
       done = self.processCommand(retval)