def main(ip=None): if '--help' in sys.argv or '-h' in sys.argv: print burst.default_help() raise SystemExit kw = {} if ip is not None: kw['ip'] = ip burst.init(**kw) # call once, connects to the naoqi server # broker = burst.getBroker() # use broker ... # create proxy try: alsonarProxy = burst.ALProxy("ALSonar",burst.ip,burst.port) except RuntimeError,e: print "error while creation alsonar's proxy" exit(1)
def main(): if '--help' in sys.argv or '-h' in sys.argv: print burst.default_help() raise SystemExit burst.init() # call once, connects to the naoqi server broker = burst.getBroker()