Skip to content

Commit

Permalink
gazebo: use new arg names for joint limits.
Browse files Browse the repository at this point in the history
Renamed in ur_description, so use the new names here as well and pass the right values.
  • Loading branch information
gavanderhoorn committed Jun 18, 2020
1 parent f7af7af commit cbe4c86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ur_gazebo/urdf/ur_robot.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name="ur" >

<!-- common stuff -->
<xacro:arg name="joints_limits_params" default="$(find ur_description)/config/ur3/joint_limits.yaml"/>
<xacro:arg name="joint_limit_params" default="$(find ur_description)/config/ur3/joint_limits.yaml"/>
<xacro:arg name="physical_params" default="$(find ur_description)/config/ur3/physical_parameters.yaml"/>
<xacro:arg name="kinematics_params" default="$(find ur_description)/config/ur3/default_kinematics.yaml"/>
<xacro:arg name="visual_params" default="$(find ur_description)/config/ur3/visual_parameters.yaml"/>
Expand All @@ -17,7 +17,7 @@
<xacro:include filename="$(find ur_gazebo)/urdf/common.gazebo.xacro"/>

<!-- arm -->
<xacro:ur_gazebo_robot prefix="" joints_limits_parameters_file="${load_yaml('$(arg joints_limits_params)')}"
<xacro:ur_gazebo_robot prefix="" joint_limits_parameters_file="${load_yaml('$(arg joint_limit_params)')}"
kinematics_parameters_file="${load_yaml('$(arg kinematics_params)')}"
physical_parameters_file="${load_yaml('$(arg physical_params)')}"
visual_parameters_file="${load_yaml('$(arg visual_params)')}"
Expand Down
4 changes: 2 additions & 2 deletions ur_gazebo/urdf/ur_robot_gazebo.macro.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

<xacro:include filename="$(find ur_description)/urdf/ur_macro.xacro"/>

<xacro:macro name="ur_gazebo_robot" params="prefix joints_limits_parameters_file kinematics_parameters_file physical_parameters_file visual_parameters_file
<xacro:macro name="ur_gazebo_robot" params="prefix joint_limits_parameters_file kinematics_parameters_file physical_parameters_file visual_parameters_file
transmission_hw_interface:=hardware_interface/PositionJointInterface
safety_limits:=false safety_pos_margin:=0.15 safety_k_position:=20">

<xacro:ur_robot prefix="${prefix}" joints_limits_parameters_file="${joints_limits_parameters_file}"
<xacro:ur_robot prefix="${prefix}" joint_limits_parameters_file="${joint_limits_parameters_file}"
kinematics_parameters_file="${kinematics_parameters_file}"
physical_parameters_file="${physical_parameters_file}"
visual_parameters_file="${visual_parameters_file}"
Expand Down

0 comments on commit cbe4c86

Please sign in to comment.