This repository is a template for all student solutions for lab tasks in the MPC-RBT course. The main
branch implements a ROS 2 package mpc_rbt_solution
that will serve as the main project for the duration of the MPC-RBT course. Other branches will contain templates for other introductory labs.
Follow installation steps in the MPC-RBT Simulator repository to install the required versions of Ubuntu, ROS, and Webots, and to prepare your workspace.
Create a fork of this repository, navigate to your created workspace directory (e.g., mpc_rbt_ws
) and clone your fork into its src
subdirectory.
Install any additional missing dependencies using the following command:
rosdep install --from-paths src -y -r --ignore-src --rosdistro humble
TODO
Navigate to the workspace directory (mpc_rbt_ws
) and build it:
colcon build
Set up the environment for the workspace:
source install/setup.bash
Launch all your solutions using:
ros2 launch mpc_rbt_solution solution.launch.py
Navigate to the workspace directory (mpc_rbt_ws
) and build it:
colcon build
Run tests using:
colcon test --ctest-args tests --packages-select mpc_rbt_solution
View the results using:
colcon test-result --verbose --all