Skip to content

Commit

Permalink
ur_description: Make robot name configurable on load_ur.launch (#612)
Browse files Browse the repository at this point in the history
In 9d02cca robot launchfiles were forwarded
to their specialized launchfiles instead of setting the robot model in the
load_ur.launch file.
  • Loading branch information
fmauch committed Nov 7, 2022
1 parent addbe3f commit f95a211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ur_description/launch/load_ur.launch
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
include the ur_macro.xacro file into it. Then write a new .launch file
to load it onto the parameter server.
-->
<param name="robot_description" command="$(find xacro)/xacro '$(find ur_description)/urdf/$(arg robot_model).xacro'
<param name="robot_description" command="$(find xacro)/xacro '$(find ur_description)/urdf/ur.xacro'
robot_model:=$(arg robot_model)
joint_limit_params:=$(arg joint_limit_params)
kinematics_params:=$(arg kinematics_params)
physical_params:=$(arg physical_params)
Expand Down
2 changes: 1 addition & 1 deletion ur_description/urdf/ur.xacro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://wiki.ros.org/xacro" name="ur">
<robot xmlns:xacro="http://wiki.ros.org/xacro" name="$(arg robot_model)_robot">

<!-- import main macro -->
<xacro:include filename="$(find ur_description)/urdf/inc/ur_macro.xacro"/>
Expand Down

0 comments on commit f95a211

Please sign in to comment.