Template Repo for ROS2 Docker based deployment for the usage at @HKA-IRAS based on the concepts of @AndreasZachariae
Extend the provided Dockerfile
for your own projekt. Local files for development can be used within the docker by moving them into the src
folder.
Additional packages can be installed within the Global Dependencies
step within the Dockerfile
, using apt and pip.
If you need to install dependencies from source add them to the dependency workspace within the Dockerfile
.\
Ensure that you give your docker a meaningful name and adjust the tag to your used setup. These changes must be done within the build_docker.sh
and start_docker.sh
file.
This is your space to describe your project. What is it for, how can it be installed and used? Keep it simple, use sample commands where possible. For the full markdown syntax take a look at: Github Docs
Install VSCode extension:
- Remote Development
- ROS
- C/C++
Mount settings folder .vscode to target directory for development
# Add parameter to docker run command
-v $PWD/.vscode:/home/docker/ros2_ws/src/.vscode
source start_docker.sh
- Attach to running docker container with VSCode remote extension
- Open remote folder where .vscode is mounted to
- Install
ROS
andC/C++
extension in container - Use command palette (strg + shift + p) and
Tasks: Run Task
andBuild
- Use VSCode debugger and stop points for debugging