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

The later tutorials (from https://github.com/ros/catkin_tutorials) are not up-to-date. (You might fill a ticket for this in the GitHub repository for the maintainer to update the tutorials.) You should only use message_generation and the targets ending in _generate_messages_cpp.

For the target it does not make a difference since they are both identifical. The new one is much more intuitively names then the old abbreviated one (_gencpp).

But for the dependency in your package.xml file it does. genmsg only provides the CMake generator functions, message_generation will actually depend on all default supported generators and makes sure that they are actually present. Otherwise e.g. when building Debians on the farm for a package containing messages it might not have any language specific message generators installed.