在14章进阶篇 1.控制OLED-自定义消息接口 遇到的问题
-
按照教程做的时候,在2.2编译功能包的时候,报错:
Packages installing interfaces must include
'<member_of_group>rosidl_interface_packages</member_of_group>' in their
package.xml于是我在package.xml中添加了这一句。成功编译。
但是在做
2.3 重新编译工程的时候,遇到了如下错误,无法解决了。
CMake Error at CMakeLists.txt:26 (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.谢谢。
-
@harebert 本地环境不干净和网络问题很容易导致build失败,这一节直接跳过即可
-
小 小伊 从 中的 FishROS2GO 移动了该主题
-
@harebert 看看https://fishros.org.cn/forum/topic/1027/%E5%8A%A8%E6%89%8B%E5%AD%A6ros2%E7%AC%AC5%E7%AB%A0%E8%BF%9B%E9%98%B6%E7%AF%87-%E6%8E%A7%E5%88%B6oled-%E8%87%AA%E5%AE%9A%E4%B9%89%E6%B6%88%E6%81%AF%E6%8E%A5%E5%8F%A3/10,确认下package.xml配置中是不是添加了rosidl依赖。不行再试试看https://github.com/micro-ROS/micro_ros_platformio/issues/115#issuecomment-1704675014。去掉ros2的环境变量source。