ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You should be able to do this with:

colcon build <other_args> --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo

instead of using RelWithDebInfo you could use Debug if you really don't want any optimisation.

You should be able to do this with:

colcon build <other_args> --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo

instead of using RelWithDebInfo you could use Debug if you really don't want any optimisation.

Assuming the project you're building is a CMake project of course (which the bridge is).


Edit:

Is there a way to get Colcon to build ROS2 binaries

pedantic perhaps, but colcon doesn't build anything. It drives other tools. So in this case we're asking colcon to pass on some arguments for CMake, which in the end will cause it to generate build scripts that will actually compile things with debug flags enabled.

You should be able to do this with:

colcon build <other_args> --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo

instead of using RelWithDebInfo you could use Debug if you really don't want any optimisation.

Assuming the project you're building is a CMake project of course (which the bridge is).


Edit:

Is there a way to get Colcon to build ROS2 binaries

pedantic perhaps, but colcon doesn't build anything. It drives other tools. So in this case we're asking colcon to pass on some arguments for CMake, which in the end will cause it to generate build scripts that will actually compile things with debug flags enabled.