diff --git a/data/RobotAPI/VariantInfo-RobotAPI.xml b/data/RobotAPI/VariantInfo-RobotAPI.xml index d5c6bc477b760591e9a2019f35e2ce0967b4937a..b93a8b8859a3239ee2f9642553affba2a21ecffb 100644 --- a/data/RobotAPI/VariantInfo-RobotAPI.xml +++ b/data/RobotAPI/VariantInfo-RobotAPI.xml @@ -25,6 +25,21 @@ getterName="getForceTorqueObserver" propertyName="ForceTorqueUnitObserverName" propertyIsOptional="true" - propDefault="ForceTorqueUnitObserver" /> + propertyDefaultValue="ForceTorqueUnitObserver" /> + <Proxy include="RobotAPI/interface/core/RobotState.h" + humanName="Robot State Component" + typeName="RobotStateComponentInterfacePrx" + memberName="robotStateComponent" + getterName="getRobotStateComponent" + propertyName="RobotStateComponentName" + propertyIsOptional="true" + propertyDefaultValue="RobotStateComponent"> + <include>RobotAPI/libraries/core/remoterobot/RemoteRobot.h</include> + <method header="const VirtualRobot::RobotPtr getRobot()">return remoteRobot;</method> + <member>VirtualRobot::RobotPtr remoteRobot;</member> + <onConnect>// initialize remote robot</onConnect> + <onConnect>remoteRobot.reset(new RemoteRobot(robotStateComponent->getSynchronizedRobot()));</onConnect> + <stateMethod header="const VirtualRobot::RobotPtr getRobot()">return %getContext%->getRobot();</stateMethod> + </Proxy> </Lib> </VariantInfo>