From 967a5f2663ff27e972626fa512a5ec01b4271eaa Mon Sep 17 00:00:00 2001
From: Olivier Stasse <ostasse@laas.fr>
Date: Wed, 2 Sep 2020 16:32:42 +0200
Subject: [PATCH] [ros_parameter] Wrong test when creating the tree of
 parameters.

---
 src/ros_parameter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ros_parameter.cpp b/src/ros_parameter.cpp
index 98b8765..c7ab709 100644
--- a/src/ros_parameter.cpp
+++ b/src/ros_parameter.cpp
@@ -31,7 +31,7 @@ bool parameter_server_read_robot_description()
   // Search for the robot util related to robot_name.
   sot::RobotUtilShrPtr aRobotUtil = sot::getRobotUtil(model_name);
   // If does not exist then it is created.
-  if (aRobotUtil != sot::RefVoidRobotUtil())
+  if (aRobotUtil == sot::RefVoidRobotUtil())
     aRobotUtil = sot::createRobotUtil(model_name);
 
   // If the creation is fine
-- 
GitLab