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

Removed info message about setting prefix when prefix is an empty string

This commit is contained in:
Thomas Timm Andersen
2016-02-19 16:02:12 +01:00
parent 161a7fc146
commit 682c77582b

View File

@@ -94,6 +94,7 @@ public:
char buf[256]; char buf[256];
if (ros::param::get("~prefix", joint_prefix)) { if (ros::param::get("~prefix", joint_prefix)) {
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);
} }
@@ -103,6 +104,7 @@ public:
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;