From 905676633dc50d01d8c63ac71ca7fdfb683bbc18 Mon Sep 17 00:00:00 2001
From: Mirko Waechter <mirko.waechter@kit.edu>
Date: Tue, 30 Aug 2016 17:13:19 +0200
Subject: [PATCH] usage of new convenience function in observer

---
 .../libraries/core/remoterobot/RobotStateObserver.cpp         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/RobotAPI/libraries/core/remoterobot/RobotStateObserver.cpp b/source/RobotAPI/libraries/core/remoterobot/RobotStateObserver.cpp
index 36713d9ad..2fe103188 100644
--- a/source/RobotAPI/libraries/core/remoterobot/RobotStateObserver.cpp
+++ b/source/RobotAPI/libraries/core/remoterobot/RobotStateObserver.cpp
@@ -164,7 +164,7 @@ void RobotStateObserver::udpatePoseDatafields(const FramedPoseBaseMap& poseMap)
 
 DatafieldRefBasePtr RobotStateObserver::getPoseDatafield(const std::string& nodeName, const Ice::Current&) const
 {
-    return getDataFieldRef(new DataFieldIdentifier(getName(), TCP_POSE_CHANNEL, nodeName));
+    return getDatafieldRefByName(TCP_POSE_CHANNEL, nodeName);
 }
 
 void RobotStateObserver::updateNodeVelocities(const NameValueMap& jointVel)
@@ -333,7 +333,7 @@ void RobotStateObserver::setRobot(RobotPtr robot)
         {
             auto nodesets = robot->getRobotNodeSets();
 
-            for (RobotNodeSetPtr& set : nodesets)
+            for (RobotNodeSetPtr & set : nodesets)
             {
                 if (set->getTCP())
                 {
-- 
GitLab