Generating messages in the same package

asked 2021-07-10 14:07:54 -0500

Andromeda gravatar image

I'm using RO2 galactic and I discovered that the tutorial page about the generation of new kind of messages is only for C++.

Since I'm using Python, I can't follow the tutorial to generate a new message (addressbook) in the same package, as the tutorial suggests. Since I create the package by running:

ros2 pkg create --build-type ament_cmake more_interfaces

I get the CMakeFiles.txt in my package but it can't find the python libraries.

Can I instead generate the package with:

ros2 pkg create --build-type ament_python more_interfaces

and import the CMakeFiles.txt from package, which has been created with the option ament_cmake ???


edit retag flag offensive close merge delete