Skip to content

Commit

Permalink
Verify tb3 exists at launch time (#3556)
Browse files Browse the repository at this point in the history
* Verify tb3 model exists before launching

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>

* Add missing tb3 dependency

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>

* Update nav2_bringup/launch/tb3_simulation_launch.py

---------

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
  • Loading branch information
Ryanf55 and SteveMacenski committed May 3, 2023
1 parent 7b132fc commit 9b56556
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nav2_bringup/launch/tb3_simulation_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def generate_launch_description():
# Get the launch directory
bringup_dir = get_package_share_directory('nav2_bringup')
launch_dir = os.path.join(bringup_dir, 'launch')
# This checks that tb3 exists needed for the URDF. If not using TB3, its safe to remove.
_ = get_package_share_directory('turtlebot3_gazebo')

# Create the launch configuration variables
slam = LaunchConfiguration('slam')
Expand Down
1 change: 1 addition & 0 deletions nav2_bringup/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<exec_depend>navigation2</exec_depend>
<exec_depend>nav2_common</exec_depend>
<exec_depend>slam_toolbox</exec_depend>
<exec_depend>turtlebot3_gazebo</exec_depend>

<test_depend>ament_lint_common</test_depend>
<test_depend>ament_lint_auto</test_depend>
Expand Down

0 comments on commit 9b56556

Please sign in to comment.