ubuntu20.04安装Octomap

安装依赖

 sudo apt-get install doxygen -y

下载

# 加上https://www.ghproxy.cn,加速下载
git clone https://www.ghproxy.cn/https://github.com/OctoMap/octomap

如果网速太慢,下载老断,可直接下载zip

wget -O octomap.zip https://www.ghproxy.cn/https://github.com/OctoMap/octomap/archive/refs/heads/devel.zip
# 解压
unzip -d octomap octomap.zip

编译安装libQGLViewer

如果没有libQGLViewer,运行会报以下错

octovis: error while loading shared libraries: libQGLViewer.so.2: cannot open shared object file: No such file or directory

cd octomap/octovis/src/extern/QGLViewer
mkdir build
cd build
qmake ..
make
sudo make install

编译安装octomap

cd octomap/octomap
mkdir build
cd build
cmake ..
make
sudo make install

编译安装octovis

cd octomap/octovis
mkdir build
cd build
cmake ..
make
sudo make install

运行

# 注意检查geb079.bt这个是否存在,若不存在,运行后显示的是一片空白
octovis ./octomap/share/data/geb079.bt 

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值