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

Added prefix args to ros_control launch files and to the tool0_controller transform frame

This commit is contained in:
Thomas Timm Andersen
2016-02-19 14:58:28 +01:00
parent 0b9bf8b549
commit adc223cbd8
6 changed files with 24 additions and 9 deletions

View File

@@ -157,9 +157,10 @@ public:
robot_.setServojTime(servoj_time);
//Base and tool frames
base_frame_ = "base";
tool_frame_ = "tool0_controller";
base_frame_ = joint_prefix + "base_link";
tool_frame_ = joint_prefix + "tool0_controller";
if (ros::param::get("~base_frame", base_frame_)) {
base_frame_ = base_frame_;
sprintf(buf, "Base frame set to: %s", base_frame_.c_str());
print_debug(buf);
}