rm

define9 Lv2

RoboMaster环境配置

两种方式 :

**注意 : **

  • 在需要调试串口Robot 需要的串口接口
  • 安装时好看清输出信息, 理解至上

OpenCV

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 安装g++ cmake ...

sudo apt update && sudo apt install -y cmake g++ wget unzip

# 安装依赖

sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"

sudo apt-get install libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev ffmpeg libavcodec-dev libavformat-dev libswscale-dev libavutil-dev

sudo apt install libjasper1 libjasper-dev

# 下载 OpenCV, 这里应该注意版本, 可以切换分支

git clone https://gitee.com/mirrors/opencv.git

cd opencv

mkdir build

cd build

# 编译的时候开启相关设置

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_GENERATE_PKGCONFIG=ON -D WITH_FFMPEG=ON ..

# j后面为核数, nproc 指令可以查看, 尽量不要跑满,

make -j 16

sudo make install

安装googletest

1
2
3
4
5
6
7
8
9
10
11
# 下载

git clone https://github.com/google/googletest.git

cd googletest && mkdir build && cd build

cmake ..

make -j8

sudo make install

spdlog

1
2
3
4
5
6
7
git clone https://github.com/gabime/spdlog.git

cd spdlog && mkdir build && cd build

cmake .. && make -j

sudo make install

BehaviorTree.CPP

1
2
3
4
5
6
7
8
9
10
11
12
13
# 需要安装Googletest再安装 行为树 : 

sudo apt-get install libzmq3-dev libboost-dev

git clone https://github.com/BehaviorTree/BehaviorTree.CPP.git

mkdir build; cd build

cmake ..

make

sudo make install
  • 标题: rm
  • 作者: define9
  • 创建于: 2023-07-13 22:21:16
  • 更新于: 2023-07-22 01:46:03
  • 链接: https://github.com/define9/2023/07/13/rm/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
 评论