How to use the qi.Server function in qi

To help you get started, we’ve selected a few qi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aldebaran / libqi / libqimessaging / python / examples / test_qi_swig.py View on Github external
def test_5():
    import qi
    import time
    print("ici")
    client = qi.Client("flds")
    client.connect(sys.argv[1])

    server = qi.Server("blam")
    server.connect(sys.argv[1])
    #time.sleep(1)

    #server.advertise_service("moule:::", moule)
    server.advertise_service("poutre::i:is", poutre)
    #time.sleep(1)

    print("before client.call")
    #ret = client.call("moule:::")
    ret = client.call("poutre::i:is", 41, "caca")
    print("called result:", ret)
    time.sleep(1)