Retrieving robot position via Secondary Interface

I think you want to look at this example but it uses the realtime client though: