diff --git a/src/ur_ros_wrapper.cpp b/src/ur_ros_wrapper.cpp index 01d87d8..e5a2d20 100644 --- a/src/ur_ros_wrapper.cpp +++ b/src/ur_ros_wrapper.cpp @@ -98,13 +98,13 @@ public: sprintf(buf, "Setting prefix to %s", joint_prefix.c_str()); print_info(buf); } + } joint_names.push_back(joint_prefix + "shoulder_pan_joint"); joint_names.push_back(joint_prefix + "shoulder_lift_joint"); joint_names.push_back(joint_prefix + "elbow_joint"); joint_names.push_back(joint_prefix + "wrist_1_joint"); joint_names.push_back(joint_prefix + "wrist_2_joint"); joint_names.push_back(joint_prefix + "wrist_3_joint"); - } robot_.setJointNames(joint_names); use_ros_control_ = false;