Reference Dockerfile to get started with Docker or Remote toolchain in CLion.
Read more in CLion Blog
Summary
- Docker image + container
- Auto-Completing + Code hints
- Debugging + Executing
In CLion Build, Execution, Deployment | Toolchains
choose Docker
.
Pay attention to:
- Container Settings
-u root
change to root user. Why? Answer: See here.-i
runs docker container in interactive mode, which is essential to get the ros environment variables. Without-i
, even entrypoint is set explictly orsource /opt/ros/$ROS_DISTRO/setup.bash
is added to.bashrc
.
Environment doesn't need to be manuelly set up.
Summary
- Docker image + container + ssh
- Auto-Completing + Code hints
In CLion Build, Execution, Deployment | Toolchains
choose Remote Host
.
- Environment variables have to be set manuelly. They can be get using a script.
Summary
- Docker image + container + ssh
- Auto-Completing + Code hints
- Debugging + Executing
In CLion Build, Execution, Deployment | Toolchains
choose Remote Host
.
- Environment variables don't need to be set.
Summary
- Docker image + container
- yaml-cpp as third party library
- Auto-Completing + Code hints
Same as ROS2
Summary
- Docker image + container
- yaml-cpp as third party library
- Auto-Completing + Code hints
- Debugging + Executing
Same as ROS2