Like it was mentioned at the end of the previous section, we are going to run an end-to-end example of SLAM and navigation with GoPiGo3. The first process deals with building a map of the environment using SLAM. Let's retrace the steps listed in the preceding section and see how to execute each of them in ROS.
Practising SLAM and navigation with the GoPiGo3
Exploring the environment to build a map using SLAM
Let's follow these steps to build the map of a simple Gazebo world called stage_2.world:
- Launch the robot model within a modeled environment by running the following line of code:
T1 $ roslaunch virtual_slam gopigo3_world.launch world:=stage_2.world
This command launches Gazebo and places the GoPiGo3 model...