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:
@@ -97,13 +97,13 @@ public:
|
|||||||
if (joint_prefix.length() > 0) {
|
if (joint_prefix.length() > 0) {
|
||||||
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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user