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:
Did you include the following line in your CMakeLists.txt
?find_package(rosidl_default_generators REQUIRED)
Did you include the following lines in your package.xml
?<depend>rosidl_default_generators</depend>
<exec_depend>rosidl_default_runtime</exec_depend>
<member_of_group>rosidl_interface_packages</member_of_group>
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.
Regards,
Girish
I copied the code from old working version and it still doesn’t work
db_vk
January 8, 2023, 2:14pm
4
kindly, can you answer the question ?
system
Closed
January 13, 2023, 2:14pm
5
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.