To run the navigation example with your project:
Make sure you have all Ros2ProjectTemplate
requirements installed (see template README.md)
Make sure your project is based on Ros2ProjectTemplate
Install ROS2 packages:
sudo apt install ros-${ROS_DISTRO}-slam-toolbox ros-${ROS_DISTRO}-navigation2 ros-${ROS_DISTRO}-nav2-bringup ros-${ROS_DISTRO}-pointcloud-to-laserscan ros-${ROS_DISTRO}-teleop-twist-keyboard
Run your project in O3DE editor
Open DemoLevel
Start the simulation by clicking the Play Game
button or pressing CTRL+G
Source ROS2 (humble version is assumed):
. /opt/ros/humble/setup.bash
Start navigation stack:
cd examples/slam_navigation/launch
ros2 launch navigation.launch.py
Set robot target goal. Use RViz2 GUI to set the goal by using the 2D Goal Pose
tool (upper toolbar).