Skip to content

Commit

Permalink
Add srdf file path argument to move_group.launch
Browse files Browse the repository at this point in the history
  • Loading branch information
708yamaguchi committed Nov 12, 2020
1 parent 3e831ff commit 977c6df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion fetch_moveit_config/launch/move_group.launch
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<launch>

<include file="$(find fetch_moveit_config)/launch/planning_context.launch" />
<arg name="srdf" default="$(find fetch_moveit_config)/config/fetch.srdf" />
<include file="$(find fetch_moveit_config)/launch/planning_context.launch" >
<arg name="srdf" value="$(arg srdf)" />
</include>

<!-- GDB Debug Option -->
<arg name="debug" default="false" />
Expand Down
7 changes: 5 additions & 2 deletions fetch_moveit_config/launch/planning_context.launch
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
<!-- The name of the parameter under which the URDF is loaded -->
<arg name="robot_description" default="robot_description"/>

<!-- The path to srdf file -->
<arg name="srdf" default="$(find fetch_moveit_config)/config/fetch.srdf" />

<!-- Load universal robot description format (URDF) -->
<param if="$(arg load_robot_description)" name="$(arg robot_description)" textfile="$(find fetch_description)/robots/fetch.urdf"/>

<!-- The semantic description that corresponds to the URDF -->
<param name="$(arg robot_description)_semantic" textfile="$(find fetch_moveit_config)/config/fetch.srdf" />
<param name="$(arg robot_description)_semantic" textfile="$(arg srdf)" />

<!-- Load updated joint limits (override information from URDF) -->
<group ns="$(arg robot_description)_planning">
<rosparam command="load" file="$(find fetch_moveit_config)/config/joint_limits.yaml"/>
Expand Down

0 comments on commit 977c6df

Please sign in to comment.