A session connect to a standalone qi.Session
. Once connected the session can:
qi.Session.registerService()
qi.Session.service()
Getting a service:
import qi
s = qi.Session()
s.connect("tcp://127.0.0.1:9559")
foo = s.service("foo")
Registering a service:
import qi
#sample service doing nothing
class Foo:
pass
s = qi.Session()
s.connect("tcp://127.0.0.1:9559")
serviceId = s.registerService("Foo", Foo())