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

Revision history [back]

Hello,

As there https://docs.ros.org/en/foxy/Tutorials/Custom-ROS2-Interfaces.html:

tutorial_interfaces is the name of the new package. Note that it is a CMake package; there currently isn’t a way to generate a .msg or .srv file in a pure Python package. You can create a custom interface in a CMake package, and then use it in a Python node, which will be covered in the last section.

It looks like your custom_msgs_srvs is a pure Python package. Just redo it as a C++ one :)

Hello,

As there https://docs.ros.org/en/foxy/Tutorials/Custom-ROS2-Interfaces.html:

tutorial_interfaces is the name of the new package. Note that it is a CMake package; there currently isn’t a way to generate a .msg .msg or .srv .srv file in a pure Python package. You can create a custom interface in a CMake package, and then use it in a Python node, which will be covered in the last section.

It looks like your custom_msgs_srvs is a pure Python package. Just redo it as a C++ one :)