How to get and use a proxy (Remote Procedure Calls)

Inside a class that inherits from armarx::ManagedIceObject (or armarx::Component), you can get a proxy with the following two lines of code:

MyInterfacePrx proxy = getProxy<MyInterfacePrx>("ProxyName");
proxy->iceInterfaceMethod();

The MyInterfacePrx needs to be the Proxy typedef of an Ice Interface.

Within a statechart you can access the StatechartContext which offers a variety of proxies depending on your statechart group setup. See Advanced Statechart Editor Tutorial for details.