Skip to content
Snippets Groups Projects
Commit 930b3401 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Merge branch 'devel' into release/3.4.0

parents 277acaf9 a24601af
No related branches found
No related tags found
No related merge requests found
#include <sot/core/robot-utils.hh>
#include "pinocchio/multibody/model.hpp" #include "pinocchio/multibody/model.hpp"
#include "pinocchio/parsers/urdf.hpp" #include "pinocchio/parsers/urdf.hpp"
...@@ -7,7 +9,6 @@ ...@@ -7,7 +9,6 @@
#include <urdf_parser/urdf_parser.h> #include <urdf_parser/urdf_parser.h>
#include <sot/core/robot-utils.hh>
#include <ros/ros.h> #include <ros/ros.h>
#include "dynamic_graph_bridge/ros_parameter.hh" #include "dynamic_graph_bridge/ros_parameter.hh"
...@@ -30,7 +31,7 @@ bool parameter_server_read_robot_description() ...@@ -30,7 +31,7 @@ bool parameter_server_read_robot_description()
// Search for the robot util related to robot_name. // Search for the robot util related to robot_name.
sot::RobotUtilShrPtr aRobotUtil = sot::getRobotUtil(model_name); sot::RobotUtilShrPtr aRobotUtil = sot::getRobotUtil(model_name);
// If does not exist then it is created. // If does not exist then it is created.
if (aRobotUtil != sot::RefVoidRobotUtil()) if (aRobotUtil == sot::RefVoidRobotUtil())
aRobotUtil = sot::createRobotUtil(model_name); aRobotUtil = sot::createRobotUtil(model_name);
// If the creation is fine // If the creation is fine
...@@ -50,4 +51,4 @@ bool parameter_server_read_robot_description() ...@@ -50,4 +51,4 @@ bool parameter_server_read_robot_description()
} }
}; }
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