ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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.
3 | No.3 Revision |
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.