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); }