File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,15 @@ bool parameter_server_read_robot_description()
25
25
std::string parameter_name (" /robot_description" );
26
26
nh.getParam (parameter_name,robot_description);
27
27
28
- pinocchio::Model model;
29
- pinocchio::urdf::buildModelFromXML (robot_description, model);
28
+ std::string model_name (" robot" );
30
29
31
- ROS_INFO (" Robot name : %s." ,model.name .c_str ());
32
30
// Search for the robot util related to robot_name.
33
- sot::RobotUtilShrPtr aRobotUtil = sot::getRobotUtil (model. name );
31
+ sot::RobotUtilShrPtr aRobotUtil = sot::getRobotUtil (model_name );
34
32
// If does not exist then it is created.
35
33
if (aRobotUtil != sot::RefVoidRobotUtil ())
36
- aRobotUtil = sot::createRobotUtil (model. name );
34
+ aRobotUtil = sot::createRobotUtil (model_name );
37
35
38
- // If the creation is fine
36
+ // If the creation is fine
39
37
if (aRobotUtil != sot::RefVoidRobotUtil ())
40
38
{
41
39
// Then set the robot model.
@@ -49,7 +47,7 @@ bool parameter_server_read_robot_description()
49
47
50
48
// Otherwise something went wrong.
51
49
return false ;
52
-
50
+
53
51
}
54
52
55
53
};
You can’t perform that action at this time.
0 commit comments