diff --git a/src/ros_parameter.cpp b/src/ros_parameter.cpp index 98b876594efe850fbe10402849ba4adbfc5f4397..c7ab7095cbff36936b16d3a322123c884338ff80 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