安装octomap-python遇到的问题

在尝试安装octomap-python版本1.8.0.post11时遇到错误,忽略后执行示例代码出现ImportError。通过查找解决方案,在.bashrc中添加libdynamicedt3d.so.1.8的路径至LD_LIBRARY_PATH环境变量,成功运行insertPointCloud.py。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. 安装octomap-python
    https://github.com/wkentaro/octomap-python
 pip install octomap-python==1.8.0.post11
  1. 执行pip install -e ‘.[example]’ 会报如下错,不予理会
ERROR: Command errored out with exit status 1: /home/yg/venv/bin/python /home/yg/venv/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp31vxn3fy Check the logs for full command output.
  1. 执行octomap-python/examples/insertPointCloud.py一开始会提示如下错误
ImportError: lib dynamicedt3d.so.1.8: cannot open shared object file: No such file or directory
  1. 找了很久,解决方法参考:
    https://github.com/wkentaro/octomap-python/issues/1
    https://stackoverflow.com/questions/23916186/how-to-include-external-library-with-python-wheel-package/42106034#42106034
  2. 具体是:
    找到有libdynamicedt3d.so.1.8文件的目录,添加到~/.bashrc并source一下:
    在这里插入图片描述
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/yg/NeuralCoMapping-main/venv/lib/venv/lib
  1. 再次运行examples目录下的insertPointCloud.py
    可以正常显示了
    在这里插入图片描述
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

高哥的代码没Bug

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值