The following commands should be run within the top-level directory, not inside the src
folder!
To build a package:
colcon build --packages-select [package_name]
The packages are:
- spawner_pkg: Spawns a robot into the world.
- controller_pkg: Estimates the robot's location and handles the robot's movment.
First, source the setup script. This must also be done after building any changes. You'll get a "Package 'package_name' not found" error otherwise:
source install/setup.bash
To run the spawner (which launches the Gazebo world):
ros2 launch spawner_pkg gazebo_world.launch.py
To run the controller:
ros2 launch controller_pkg controller_estimator.launch.py