Skip to content

Commit

Permalink
create segbot simulation launch package (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-oquin committed Feb 23, 2018
1 parent 7a91ca5 commit 765cad2
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 0 deletions.
14 changes: 14 additions & 0 deletions launch_segbot_simulation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 2.8.3)
project(launch_segbot_simulation)

find_package(catkin REQUIRED)
catkin_package()

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)

# unit tests are enabled selectively
if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(launch)
endif()
84 changes: 84 additions & 0 deletions launch_segbot_simulation/launch/common.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<launch>

<!-- common simulation for all segbot models -->

<arg name="localization_scan_topic" default="scan_filtered" />
<arg name="move_base_config" default="segbotv2" />
<arg name="multimap_file" default="$(find utexas_gdc)/maps/simulation/multimap2/combined.yaml" />
<arg name="robot_configuration"
default="$(find segbot_bringup)/launch/includes/auxiliary.segbot_v2.launch.xml" />
<arg name="x" default="0" />
<arg name="y" default="0" />
<arg name="yaw" default="0" />

<!-- start the UTexas GDC simulation environment -->
<include file="$(find utexas_gdc)/launch/simulation_multimap.launch" />

<!-- launch a multi map server for the simulated world -->
<node name="multi_level_map_server" pkg="multi_level_map_server" type="multi_level_map_server">
<param name="map_file" value="$(arg multimap_file)" />
</node>

<!-- Set the default level this robot starts on -->
<param name="level_mux/default_current_level" value="3rdFloor" />

<!-- also launch the level multiplexer and the level selector GUI -->
<node name="level_mux" pkg="multi_level_map_utils" type="level_mux">
<param name="global_frame_id" value="level_mux_map" />
</node>
<node name="level_selector" pkg="multi_level_map_utils" type="level_selector" />

<!-- Add simulation helpers for opening and closing doors, and
teleporting the robot through elevators. -->
<include file="$(find segbot_simulation_apps)/launch/door_handler.launch" />
<node name="robot_teleporter" pkg="segbot_simulation_apps" type="robot_teleporter">
<param name="robotid" value="segbot" />
</node>

<!-- launch the interruptable action server -->
<node name="move_base_interruptable" pkg="segbot_navigation"
type="move_base_interruptable_server" />
<node name="move_base_interruptable_simple" pkg="segbot_navigation"
type="move_base_interruptable_simple" />

<!-- start the gazebo simulator -->
<include file="$(find segbot_gazebo)/launch/segbot_mobile_base.launch">
<arg name="configuration_file" value="$(arg robot_configuration)" />
<arg name="x" value="$(arg x)" />
<arg name="y" value="$(arg y)" />
<arg name="yaw" value="$(arg yaw)" />
<arg name="robotid" value="segbot" />
<arg name="map_frame" value="level_mux_map" />
<arg name="map_service" value="level_mux/static_map" />
<arg name="map_topic" value="level_mux/map" />
<arg name="navigation_map_topic" value="bwi_logical_navigator/map" />
<arg name="launch_localization" value="true" />
<arg name="localization_scan_topic" default="$(arg localization_scan_topic)" />
<arg name="use_fake_localization" value="false" />
<arg name="move_base_server" value="move_base_interruptable" />
<arg name="move_base_config" value="$(arg move_base_config)" />
<arg name="launch_move_base" value="true" />
<arg name="use_full_gazebo_model" value="false" />
</include>

<!-- Finally, launch the bwi_logical_navigator to do low-level logical navigation. -->
<node name="bwi_logical_navigator" pkg="bwi_logical_translator" type="bwi_logical_navigator">
<param name="global_frame_id" value="level_mux_map" />
<remap from="move_base" to="move_base_interruptable" />
</node>

<!-- launch the planner and reasoner -->
<include file="$(find bwi_kr_execution)/launch/bwi_kr_execution.launch">
<arg name="domain" value="$(find bwi_kr_execution)/domain_simulation/" />
<arg name="simulation" value="true" />
</include>

<!-- Graphical user interface components -->

<!-- vizualization -->
<node name="rviz" type="rviz_runner" pkg="segbot_navigation" />
<!-- question dialog gui -->
<node name="gui" type="question_dialog_plugin" pkg="bwi_rqt_plugins" />

</launch>

10 changes: 10 additions & 0 deletions launch_segbot_simulation/launch/v2.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<launch>

<!-- segbot_v2 simulation -->
<include file="$(find launch_segbot_simulation)/launch/common.launch">
<arg name="move_base_config" default="segbotv2" />
<arg name="x" value="15.0" />
<arg name="y" value="110.0" />
</include>

</launch>
13 changes: 13 additions & 0 deletions launch_segbot_simulation/launch/v3.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<launch>

<!-- segbot_v3 simulation -->
<include file="$(find launch_segbot_simulation)/launch/common.launch">
<arg name="localization_scan_topic" value="velodyne/scan_filtered" />
<arg name="move_base_config" value="segbotv3" />
<arg name="robot_configuration"
value="$(find segbot_bringup)/launch/includes/auxiliary.segbot_v3.launch.xml" />
<arg name="x" value="15.0" />
<arg name="y" value="110.0" />
</include>

</launch>
38 changes: 38 additions & 0 deletions launch_segbot_simulation/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<package format="2">
<name>launch_segbot_simulation</name>
<version>0.3.3</version>
<description>
Top-level ROS launch scripts for the Building-Wide Intelligence
(BWI) project of the University of Texas at Austin.

This package launches simulations of any one of the various BWI
segbot models.
</description>

<license>BSD</license>

<url type="repository">https://github.com/utexas-bwi/segbot</url>
<url type="bugtracker">https://github.com/utexas-bwi/segbot/issues</url>

<maintainer email="[email protected]">Jack O'Quin</maintainer>
<author>Jack O'Quin</author>
<author>Piyush Khandelwal</author>

<buildtool_depend>catkin</buildtool_depend>

<exec_depend>bwi_kr_execution</exec_depend>
<exec_depend>bwi_logical_translator</exec_depend>
<exec_depend>bwi_msgs</exec_depend>
<exec_depend>bwi_rqt_plugins</exec_depend>
<exec_depend>bwi_tools</exec_depend>
<exec_depend>multi_level_map_server</exec_depend>
<exec_depend>multi_level_map_utils</exec_depend>
<exec_depend>segbot_bringup</exec_depend>
<exec_depend>segbot_gazebo</exec_depend>
<exec_depend>segbot_navigation</exec_depend>
<exec_depend>segbot_simulation_apps</exec_depend>
<exec_depend>utexas_gdc</exec_depend>

<test_depend>roslaunch</test_depend>

</package>

0 comments on commit 765cad2

Please sign in to comment.