diff --git a/effort_controllers/src/joint_group_position_controller.cpp b/effort_controllers/src/joint_group_position_controller.cpp index cb39fdb07..2cb03411c 100644 --- a/effort_controllers/src/joint_group_position_controller.cpp +++ b/effort_controllers/src/joint_group_position_controller.cpp @@ -76,7 +76,7 @@ namespace effort_controllers // Get URDF urdf::Model urdf; - if (!urdf.initParam("robot_description")) + if (!urdf.initParamWithNodeHandle("robot_description", n)) { ROS_ERROR("Failed to parse urdf file"); return false;