PythonHumble in 5 days , 4.6 Custom Service Interface

Guys running the code below at HUMBLE doesn’t work but it works at older version why?

user:~/ros2_ws$ colcon build --packages-select custom_interfaces
[2.608s] WARNING:colcon.colcon_core.package_selection:ignoring unknown package 'custom_interfaces’in --packages-select

Summary: 0 packages finished [1.32s]
user:~/ros2_ws$ source install/setup.bash
user:~/ros2_ws$ ros2 interface show custom_interfaces/srv/MyCustomServiceMessage
Could not find the interface ‘/home/user/ros2_ws/install/custom_interfaces/share/custom_interfaces/srv/MyCustomServiceMessage.idl’

Hi @gvfstudio ,

Your error seems more on the topic of not able to find <interface_name>.idl file. So with that hint, I have the following questions for you:

  1. Did you include the following line in your CMakeLists.txt?
    find_package(rosidl_default_generators REQUIRED)
  2. Did you include the following lines in your package.xml?

If you have these lines, you could compile your package correctly.
I have not worked on Humble yet, only on Foxy and Galactic.

I hope this helps. Let me know if this fixed your problem.


I copied the code from old working version and it still doesn’t work

kindly, can you answer the question ?

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.