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的虚拟环境,所以无法正常运行,切换环境后即可。

相关推荐
千寻xun2 小时前
一、理论篇-NVME协议学习笔记
笔记·学习·fpga开发·nvme ssd·nvme协议
月疯2 小时前
CNN卷积和反卷积输出的计算方法
深度学习·神经网络·cnn
researcher-Jiang3 小时前
高性能计算之OpenMP——超算习堂学习1
android·java·学习
夜雪一千3 小时前
Python enumerate() 函数完整详解:遍历同时获取索引,告别手动计数
服务器·windows·python
CS创新实验室3 小时前
算法、齿轮与硅基大脑:数值计算发展简史
人工智能·算法·数值计算
能有时光3 小时前
PyTorch KernelAgent 源码解读 ---(4)--- ExtractorAgent
人工智能·pytorch·python
直接冲冲冲3 小时前
鱼书-PH4-类的作用
深度学习
_Jimmy_3 小时前
Python 协程库如何使用以及有哪些使用场景
python
aqi004 小时前
15天学会AI应用开发(十七)使用LangGraph实现会话记忆功能
人工智能·python·大模型·ai编程·ai应用
第一程序员4 小时前
Rust Agent 子进程执行:Command 之前,先定义输入和超时
python·rust·github