To build the code in a workspace, we can follow the following steps:
Go to the root directory of the workspace
Install missing dependencies: rosdep install -i --from-path src --rosdistro humble -y
rosdep install -i --from-path src --rosdistro humble -y
Build the code
If you want to build all packages in the workspace: colcon build --symlink-install
If you want to build a specific package: colcon build --packages-select
Open a new terminal, go to the root directory of the workspace, and execute the following command: . install/setup.bash (or soruce install/setup.sh)
. install/setup.bash
soruce install/setup.sh
Last updated 2 years ago