1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 18:10:47 +02:00

Fixed 'No joint names published when not using a prefix'. Closes #34

This commit is contained in:
Thomas Timm Andersen
2016-02-22 17:10:00 +01:00
parent 30b9ee5330
commit 70279d5ece

View File

@@ -98,13 +98,13 @@ public:
sprintf(buf, "Setting prefix to %s", joint_prefix.c_str()); sprintf(buf, "Setting prefix to %s", joint_prefix.c_str());
print_info(buf); print_info(buf);
} }
}
joint_names.push_back(joint_prefix + "shoulder_pan_joint"); joint_names.push_back(joint_prefix + "shoulder_pan_joint");
joint_names.push_back(joint_prefix + "shoulder_lift_joint"); joint_names.push_back(joint_prefix + "shoulder_lift_joint");
joint_names.push_back(joint_prefix + "elbow_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_1_joint");
joint_names.push_back(joint_prefix + "wrist_2_joint"); joint_names.push_back(joint_prefix + "wrist_2_joint");
joint_names.push_back(joint_prefix + "wrist_3_joint"); joint_names.push_back(joint_prefix + "wrist_3_joint");
}
robot_.setJointNames(joint_names); robot_.setJointNames(joint_names);
use_ros_control_ = false; use_ros_control_ = false;