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

Revision history [back]

Yes, it is possible.

Earlier, I have tested it and it works. However, as stevemacenski suggested in his answer, it is better to keep interface definitions in a separate package.

You need to use rosidl_target_interfaces if you are on Foxy, or Galactic. Please check the following answer for detailed instructions: https://answers.ros.org/question/402196/ros2-configure-a-package-having-idl-files-srv-msg-etc-along-with-cpp/?answer=402218#post-id-402218

Yes, it is possible.

Earlier, I have tested it and it works. However, as stevemacenski suggested in his answer, it is better to keep interface definitions in a separate package.

You need to use rosidl_target_interfaces , if you are on Foxy, Foxy or Galactic. Please check the following answer for detailed instructions: https://answers.ros.org/question/402196/ros2-configure-a-package-having-idl-files-srv-msg-etc-along-with-cpp/?answer=402218#post-id-402218