From 70279d5ece579bda083c27e04ac0cce4ea041916 Mon Sep 17 00:00:00 2001 From: Thomas Timm Andersen Date: Mon, 22 Feb 2016 17:10:00 +0100 Subject: [PATCH] Fixed 'No joint names published when not using a prefix'. Closes #34 --- src/ur_ros_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;