Skip to content
Snippets Groups Projects
Commit b5672a60 authored by Peter Kaiser's avatar Peter Kaiser
Browse files

VariantInfo: Added local robot access to RobotStateComponent

parent 55fdc3e5
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,12 @@
<onConnect>// initialize remote robot</onConnect>
<onConnect>remoteRobot.reset(new RemoteRobot(robotStateComponent-&gt;getSynchronizedRobot()));</onConnect>
<stateMethod header="const VirtualRobot::RobotPtr getRobot() const">return %getContext%-&gt;getRobot();</stateMethod>
<method header="const VirtualRobot::RobotPtr getLocalRobot() const">return localRobot;</method>
<member>VirtualRobot::RobotPtr localRobot;</member>
<onConnect>// initialize local robot</onConnect>
<onConnect>localRobot = RemoteRobot::createLocalCloneFromFile(robotStateComponent, VirtualRobot::RobotIO::eStructure);</onConnect>
<stateMethod header="const VirtualRobot::RobotPtr getLocalRobot() const">return %getContext%-&gt;getLocalRobot();</stateMethod>
</Proxy>
<Proxy include="RobotAPI/interface/components/ViewSelectionInterface.h"
humanName="Automatic View Selection"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment