Skip to content

Commit 7d2c2b7

Browse files
kinematics_hash now automatically read from kinematics_params
1 parent beef717 commit 7d2c2b7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

my_robot_cell/my_robot_cell_control/urdf/my_robot_cell_controlled.urdf.xacro

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
<xacro:arg name="ur_input_recipe_filename" default="$(find ur_robot_driver)/resources/rtde_input_recipe.txt"/>
2323
<xacro:arg name="use_fake_hardware" default="false" />
2424
<xacro:arg name="fake_sensor_commands" default="false" />
25-
<!--find hash_kinematics in calibration yaml-->
26-
<xacro:arg name="hash_kinematics" default="calib_4890363623803256388" />
27-
25+
<!--find hash_kinematics in kinematics_params-->
26+
<xacro:property name="kinematics_params_file" value="$(arg kinematics_params)"/>
27+
<xacro:property name="kinematics_hash" value="${xacro.load_yaml(kinematics_params_file)['kinematics']['hash']}"/>
28+
2829

2930
<link name="world" />
3031

@@ -45,7 +46,7 @@
4546
<xacro:ur_ros2_control
4647
name="$(arg ur_type)"
4748
tf_prefix="$(arg ur_type)_"
48-
hash_kinematics="$(arg hash_kinematics)"
49+
hash_kinematics="${kinematics_hash}"
4950
robot_ip="$(arg robot_ip)"
5051
script_filename="$(arg ur_script_filename)"
5152
output_recipe_filename="$(arg ur_output_recipe_filename)"

0 commit comments

Comments
 (0)