ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
CLion IDE can be conveniently used with ros2. It happens thanks to CLion support of Compilation Database (CD) and colcon creating a top-level CD file for the entire workspace. How to set it up?
colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1
.compile_commands.json
file in your build/
directory. You need to copy it to top-level directory of your workspace (where you have src/
and build/
directories. You can automate this step.File->Open
, and select the compile_commands.json
file, open it as a project.2 | No.2 Revision |
CLion IDE can be conveniently used with ros2. It happens thanks to CLion support of Compilation Database (CD) and colcon creating a top-level CD file for the entire workspace. How Here is how to set it up?up:
colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1
.compile_commands.json
file in your build/
directory. You need to copy it to top-level directory of your workspace (where you have src/
and build/
directories. You can automate this step.File->Open
, and select the compile_commands.json
file, open it as a project.