noetic不能采样 sudo apt-get install的方式安装,只能通过源码安装,并且最好安装在/opt/ros/noetic的文件下,因为在ros软件包的CMakeLists.txt中的find_package要包含serial的话该serial需要安装在/opt/ros/noetic的安装前缀下,具体设置cmake变量CMAKE_INSTALL_PREFIX.
serial 源码
git clone https://github.com/wjwwood/serial.git
cmake -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic
-
make
-
sudo make install
roscd serial
可以即安装成功,可以在find_package中写serial
在/opt/ros/noetic/include中已经由serial的头文件了
————————————————
版权声明:本文为优快云博主「dwell548560」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.youkuaiyun.com/dwell548560/article/details/121648028