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 don't need to pass an absolute path to rosidl_generator_interfaces(). A relative path will be just fine, so removing ${CMAKE_CURRENT_SOURCE_DIR}/ should be all it takes.

It also seems that your service file lacks the extension .srv.

The alternative would be to pass an absolute base path (${CMAKE_CURRENT_SOURCE_DIR}) and the relative path (srv/Connect.srv) - separated by a colon.