opencalib中lidar2camera安装记录

目录

一、opencalib安装

二、lidar2camera的安装

三、测试运行

四、出现过的问题


一、opencalib安装

代码地址:https://github.com/PJLab-ADG/SensorsCalibration/blob/master/README.md

复制代码
# pull docker image
sudo docker pull scllovewkf/opencalib:v1
# After the image is pulled down, start the docker image.  /home/sz3/ailab/ =  code root path on your host
docker run -it -v /home/sz3/ailab/:/share scllovewkf/opencalib:v1 /bin/bash
# or
sudo ./run_docker.sh

二、lidar2camera的安装

我没有把openclib整个安装下来,只装了我需要的lidar2camera,以下是安装过程

开源代码地址:https://github.com/PJLab-ADG/SensorsCalibration/tree/master/lidar2camera

1.cmake的安装

安装的是最新版本。

复制代码
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -

sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update

sudo apt install cmake

通过which cmake可以查看安装的路径。

2.opencv的安装

复制代码
pip install opencv-python

3.eigen 3的安装

复制代码
sudo apt-get install libeigen3-dev

4.PCL的安装

复制代码
sudo apt install libpcl-dev

5.pangolin的安装

依次输入命令,进入刚刚下载好的源文件目录,并进行安装。

复制代码
git clone https://github.com/stevenlovegrove/Pangolin.git

makdir build && cd build
cmake ..

sudo make install

6.lidar2camera

首先

复制代码
git clone https://github.com/PJLab-ADG/SensorsCalibration/tree/master/lidar2camera

然后

复制代码
# mkdir build
mkdir -p build && cd build
# build
cmake .. && make

三、测试运行

复制代码
cd ~./manual_calib/
./bin/run_lidar2camera data/0.png data/0.pcd data/center_camera-intrinsic.json data/top_center_lidar-to-center_camera-extrinsic.json

选择Save Image,自动保存图片与相关信息。

四、出现过的问题

因为我开始安装的时候创建了一个calib的虚拟环境,所以无法正常运行,切换环境后即可。

相关推荐
Fu_lucas1 分钟前
Python Logging 模块完全指南
开发语言·python
Eiceblue3 分钟前
Python 在Excel单元格中应用多种字体样式
开发语言·vscode·python·pycharm·excel
Superstarimage2 小时前
使用conda创建python虚拟环境,并自定义路径
windows·python·conda
菜鸡码农,喵。2 小时前
已经装了pygame但pycharm显示没有该模块/软件包无法加载出来下载pygame
python·pycharm·pygame
m0_738206542 小时前
嵌入式学习的第二十二天-数据结构-栈+队列
数据结构·学习
小羊Linux客栈2 小时前
自动化:批量文件重命名
运维·人工智能·python·自动化·游戏程序
远瞻。3 小时前
【论文阅读】人脸修复(face restoration ) 不同先验代表算法整理2
论文阅读·算法
shykevin5 小时前
python开发Streamable HTTP MCP应用
开发语言·网络·python·网络协议·http
漫路在线6 小时前
JS逆向-某易云音乐下载器
开发语言·javascript·爬虫·python
先做个垃圾出来………6 小时前
哈夫曼树(Huffman Tree)
数据结构·算法