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

This is not my area of expertise, but check rosbuild out.

This isn't the place for a tutorial, but a project I work on, that use CMake, and builds ROS nodes, but avoids catkin, roughly uses these commands:

INCLUDE($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
ROSBUILD_INIT()

ROSBUILD_ADD_EXECUTABLE(slam
                        src/slam/slam_main.cc
                        src/slam/slam.cc)

The link to the repo's CMakeLists.txt is here.

Cheers!

EDIT: Don't use rosbuild per @gvdhoorn 's comment below

This is not my area of expertise, but check rosbuild out.

This isn't the place for a tutorial, but a project I work on, that use CMake, and builds ROS nodes, but avoids catkin, roughly uses these commands:

INCLUDE($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
ROSBUILD_INIT()

ROSBUILD_ADD_EXECUTABLE(slam
                        src/slam/slam_main.cc
                        src/slam/slam.cc)

The link to the repo's CMakeLists.txt is here.

Cheers!