From 920a14d252d48b5fba7b7cc3d1aa7193cdab01ff Mon Sep 17 00:00:00 2001
From: Mirko Waechter <mirko.waechter@kit.edu>
Date: Fri, 29 Jun 2018 18:16:42 +0200
Subject: [PATCH] added a collisionrobot model to statechart contexts

---
 data/RobotAPI/VariantInfo-RobotAPI.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/data/RobotAPI/VariantInfo-RobotAPI.xml b/data/RobotAPI/VariantInfo-RobotAPI.xml
index 75e57d387..22ada2251 100644
--- a/data/RobotAPI/VariantInfo-RobotAPI.xml
+++ b/data/RobotAPI/VariantInfo-RobotAPI.xml
@@ -178,10 +178,14 @@
             <stateMethod header="const VirtualRobot::RobotPtr getRobot() const">return %getContext%-&gt;getRobot();</stateMethod>
 
             <method header="const VirtualRobot::RobotPtr getLocalRobot() const">return localRobot;</method>
+            <method header="const VirtualRobot::RobotPtr getLocalCollisionRobot() const">return localCollisionRobot;</method>
             <member>VirtualRobot::RobotPtr localRobot;</member>
+            <member>VirtualRobot::RobotPtr localCollisionRobot;</member>
             <onConnect>// initialize local robot</onConnect>
             <onConnect>localRobot = RemoteRobot::createLocalCloneFromFile(robotStateComponent, VirtualRobot::RobotIO::eStructure);</onConnect>
+            <onConnect>localCollisionRobot = RemoteRobot::createLocalCloneFromFile(robotStateComponent, VirtualRobot::RobotIO::eCollisionModel);</onConnect>
             <stateMethod header="const VirtualRobot::RobotPtr getLocalRobot() const">return %getContext%-&gt;getLocalRobot();</stateMethod>
+            <stateMethod header="const VirtualRobot::RobotPtr getLocalCollisionRobot() const">return %getContext%-&gt;getLocalCollisionRobot();</stateMethod>
         </Proxy>
         <Proxy include="RobotAPI/interface/components/ViewSelectionInterface.h"
             humanName="Automatic View Selection"
-- 
GitLab