Skip to content

Commit

Permalink
Add launch file for Demo with Gazebo + Moveit
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jul 6, 2016
1 parent 8270804 commit 66120f8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions fanuc_lrmate200id_moveit_config/launch/gazebo_demo.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<launch>

<!-- By default, we do not start a database (it can be large) -->
<arg name="db" default="true" />
<!-- Allow user to specify database location -->
<arg name="db_path" default="$(find fanuc_lrmate200id_moveit_config)/default_warehouse_mongo_db" />

<!-- By default, we are not in debug mode -->
<arg name="debug" default="false" />

<!-- Launch Gazebo -->
<arg name="gazebo" default="false" />
<include file="$(find fanuc_lrmate200id_gazebo)/launch/gazebo_lrmate200id.launch" if="$(arg gazebo)" />

<!-- Load the URDF, SRDF and other .yaml configuration files on the param server -->
<include file="$(find fanuc_lrmate200id_moveit_config)/launch/planning_context.launch">
<arg name="load_robot_description" value="false"/>
</include>

<!-- Run the main MoveIt executable without trajectory execution (we do not have controllers configured by default) -->
<include file="$(find fanuc_lrmate200id_moveit_config)/launch/move_group.launch">
<arg name="allow_trajectory_execution" value="true"/>
<arg name="fake_execution" value="false"/>
<arg name="info" value="true"/>
<arg name="debug" value="$(arg debug)"/>
</include>

<!-- Run Rviz and load the default config to see the state of the move_group node -->
<arg name="rviz" default="true" />
<include file="$(find fanuc_lrmate200id_moveit_config)/launch/moveit_rviz.launch">
<arg name="config" value="true"/>
<arg name="debug" value="$(arg debug)"/>
</include>

<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find fanuc_lrmate200id_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)">
<arg name="moveit_warehouse_database_path" value="$(arg db_path)"/>
</include>

</launch>
1 change: 1 addition & 0 deletions fanuc_lrmate200id_moveit_config/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

<buildtool_depend>catkin</buildtool_depend>

<exec_depend>fanuc_lrmate200id_gazebo</exec_depend>
<exec_depend>fanuc_lrmate200id_moveit_plugins</exec_depend>
<exec_depend>fanuc_lrmate200id_support</exec_depend>
<exec_depend>industrial_robot_simulator</exec_depend>
Expand Down

0 comments on commit 66120f8

Please sign in to comment.