紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
在macroros教程中《控制OLED-自定义消息接口》无法编译
-
环境是ubuntu22,用的是小鱼脚本安装的ros2 humble
教程章节:
https://fishros.com/d2lros2/#/humble/chapt14/advance/1.控制OLED-自定义消息接口进行到该章节第2.2 编译功能包时,
colcon build
后,提示~Starting >>> fishbot_interfaces --- stderr: fishbot_interfaces CMake Error at /opt/ros/humble/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:229 (message): Packages installing interfaces must include '<member_of_group>rosidl_interface_packages</member_of_group>' in their package.xml Call Stack (most recent call first): CMakeLists.txt:29 (rosidl_generate_interfaces) --- Failed <<< fishbot_interfaces [3.01s, exited with code 1] Summary: 0 packages finished [3.20s] 1 package failed: fishbot_interfaces 1 package had stderr output: fishbot_interfaces
安照错误提示,在
package.xml
中加上<member_of_group>rosidl_interface_packages</member_of_group>
后可以通过编译。继续后按照教程,编译时提示错误
--- stderr: fishbot_interfaces CMake Error at CMakeLists.txt:27 (find_package): By not providing "Findrosidl_default_generators.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "rosidl_default_generators", but CMake did not find one. Could not find a package configuration file provided by "rosidl_default_generators" with any of the following names: rosidl_default_generatorsConfig.cmake rosidl_default_generators-config.cmake Add the installation prefix of "rosidl_default_generators" to CMAKE_PREFIX_PATH or set "rosidl_default_generators_DIR" to a directory containing one of the above files. If "rosidl_default_generators" provides a separate development package or SDK, be sure it has been installed. --- Failed <<< fishbot_interfaces [0.96s, exited with code 1]
-