Skip to content

Commit

Permalink
Replace deprecated load_yaml with xacro.load_yaml in ros2_control.xac…
Browse files Browse the repository at this point in the history
…ro template (#2934)
  • Loading branch information
cschindlbeck authored Aug 2, 2024
1 parent d7f4d48 commit d7b84fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="[ROBOT_NAME]_ros2_control" params="name initial_positions_file">
<xacro:property name="initial_positions" value="${load_yaml(initial_positions_file)['initial_positions']}"/>
<xacro:property name="initial_positions" value="${xacro.load_yaml(initial_positions_file)['initial_positions']}"/>

<ros2_control name="${name}" type="system">
<hardware>
Expand Down

0 comments on commit d7b84fd

Please sign in to comment.