This is the base repo designed to be cloned to setup a VS code enviroment for development with the krytn robot.
- Install WSL2 on Windows 11
- Install and run docker-desktop with WSL 2 enabled.
- Install VS Code
- Open WSL2 and clone this repo.
- Install developer containers VS Code extension.
- Type
code .
in the repo folder to open VS Code in WSL. - Re-open folder using dev-container, this may take a long time as it downloads.
- Inside the container, open a terminal and run
bash .devcontainer/setup_container.bash
to setup the container - Source the ros environment to get the shell setup.
source /opt/ros/foxy/local_setup.bash
- Build the packages using colcon
colcon build
- Re-source the install directory to get the built packages into your terminals path
source install/setup.bash
- Run the gazebo sim
ros2 launch krytn-cafe empty-world.launch.py
And you are away!
Using some setup inspiration and code snippets from the excellent https://github.com/athackst/vscode_ros2_workspace