Beispiel #1
0
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)
Beispiel #2
0
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()