笔者Linux虚拟机系统为Ubuntu20.04,安装ROS我参考的是https://blog.csdn.net/weixin_45168199/article/details/106910446
安装完成后创建ROS工作空间

$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace

在Ubuntu中Home文件夹下即可看到对应生成的文件
笔者在配置GitHub上一个开源软件的过程中遇到一个问题:
在这里插入图片描述
提示:CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by “nmea_msgs” with

Add the installation prefix of “nmea_msgs” to CMAKE_PREFIX_PATH or set
“nmea_msgs_DIR” to a directory containing one of the above files. If
“nmea_msgs” provides a separate development package or SDK, be sure it has
been installed.
解决方法:在GitHub找到该库https://github.com/ros-drivers/nmea_msgs
然后将该库安装到HOME/catkin_ws/src文件夹下,在Ubuntu终端输入:

cd $HOME/catkin_ws/src
git clone https://github.com/ros-drivers/nmea_msgs

然后再重新配置我的开源软件就解决这个问题了。

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐