From adc223cbd837d9331db774031ef42f0e7f73a4a6 Mon Sep 17 00:00:00 2001 From: Thomas Timm Andersen Date: Fri, 19 Feb 2016 14:58:28 +0100 Subject: [PATCH] Added prefix args to ros_control launch files and to the tool0_controller transform frame --- launch/ur10_ros_control.launch | 9 +++++++-- launch/ur3_bringup.launch | 1 + launch/ur3_ros_control.launch | 4 ++++ launch/ur5_ros_control.launch | 10 +++++++--- launch/ur_common.launch | 4 ++-- src/ur_ros_wrapper.cpp | 5 +++-- 6 files changed, 24 insertions(+), 9 deletions(-) diff --git a/launch/ur10_ros_control.launch b/launch/ur10_ros_control.launch index ce6c1e1..bbf576a 100644 --- a/launch/ur10_ros_control.launch +++ b/launch/ur10_ros_control.launch @@ -1,20 +1,24 @@ + - + - + + + + @@ -22,6 +26,7 @@ + diff --git a/launch/ur3_bringup.launch b/launch/ur3_bringup.launch index c5d4a8f..9d267e1 100644 --- a/launch/ur3_bringup.launch +++ b/launch/ur3_bringup.launch @@ -25,6 +25,7 @@ + diff --git a/launch/ur3_ros_control.launch b/launch/ur3_ros_control.launch index 1c1cd89..c9a7fd2 100644 --- a/launch/ur3_ros_control.launch +++ b/launch/ur3_ros_control.launch @@ -1,3 +1,4 @@ + @@ -9,10 +10,12 @@ + + @@ -23,6 +26,7 @@ + diff --git a/launch/ur5_ros_control.launch b/launch/ur5_ros_control.launch index b81b017..301ffea 100644 --- a/launch/ur5_ros_control.launch +++ b/launch/ur5_ros_control.launch @@ -1,21 +1,24 @@ + - + - + + + - + @@ -23,6 +26,7 @@ + diff --git a/launch/ur_common.launch b/launch/ur_common.launch index 8b7836c..cc48d98 100644 --- a/launch/ur_common.launch +++ b/launch/ur_common.launch @@ -13,8 +13,8 @@ - - + + diff --git a/src/ur_ros_wrapper.cpp b/src/ur_ros_wrapper.cpp index abfbda1..6280868 100644 --- a/src/ur_ros_wrapper.cpp +++ b/src/ur_ros_wrapper.cpp @@ -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); }