コード例 #1
0
ファイル: test_burst.py プロジェクト: alon/burst
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)
コード例 #2
0
ファイル: minimal_burst_example.py プロジェクト: alon/burst
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()