Skip to content
Snippets Groups Projects
Unverified Commit a24601af authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #77 from olivier-stasse/devel

Fix inclusion order for robot-utils.hh
parents 8d4b7a69 967a5f26
No related branches found
No related tags found
No related merge requests found
......@@ -5,5 +5,5 @@ namespace dynamicgraph {
bool parameter_server_read_robot_description();
};
}
#endif /* _ROS_DYNAMIC_GRAPH_PARAMETER_ */
#include <sot/core/robot-utils.hh>
#include "pinocchio/multibody/model.hpp"
#include "pinocchio/parsers/urdf.hpp"
......@@ -7,7 +9,6 @@
#include <urdf_parser/urdf_parser.h>
#include <sot/core/robot-utils.hh>
#include <ros/ros.h>
#include "dynamic_graph_bridge/ros_parameter.hh"
......@@ -30,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
......@@ -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