-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from secorolab/ros2-migration
Add support for ROS2 launch files and Gazebo worlds
- Loading branch information
Showing
4 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/fpm/templates/ros/world.launch.jinja → ...fpm/templates/ros/world.ros1.launch.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!-- ROS1 Launch File --> | ||
<launch> | ||
|
||
<!-- GAZEBO SETUP ARGUMENTS --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!-- ROS2 Launch File - Supports ROS2 Jazzy --> | ||
<launch> | ||
|
||
|
||
<!-- GAZEBO SETUP ARGUMENTS --> | ||
<arg name="use_sim_time" default="true"/> | ||
<arg name="gazebo_gui" default="false"/> | ||
<arg name="headless" default="true"/> | ||
<arg name="debug" default="false"/> | ||
<arg name="paused" default="false"/> | ||
<arg name="world_name" default="worlds/{{model_name}}.sdf"/> | ||
|
||
<set_env name="GAZEBO_MODEL_PATH" value="$(find-pkg-prefix floorplan_models)/models:$(find-pkg-prefix floorplan_models)/worlds:$(env GAZEBO_MODEL_PATH)"/> | ||
|
||
<!-- launch gazebo with empty world --> | ||
<include file="$(find floorplan_models)/launch/gazebo_world.launch"> | ||
<let name="world_name" value="$(var world_name)"/> | ||
<let name="paused" value="$(var paused)"/> | ||
<let name="use_sim_time" value="$(var use_sim_time)"/> | ||
<let name="gui" value="$(var gazebo_gui)"/> | ||
<let name="headless" value="$(var headless)"/> | ||
<let name="debug" value="$(var debug)"/> | ||
</include> | ||
|
||
</launch> |