Apollo CyberRT(v8.0.0) Cmake Build
build CMake Apollo
2023-09-14 09:09:26 时间
#1 CyberRT Standalone
CyberRT仓库: https://github.com/minhanghuang/CyberRT
将CyberRT从Apollo拆分,使用Cmake编译, 不依赖Apollo独立运行
#1.1 环境
Ubuntu 18.04
Ubuntu 20.04
Apollo 8.0.0
Cmake
- 1
- 2
- 3
- 4
#1.2 使用
- 安装依赖
sudo apt install libpoco-dev
sudo apt install uuid-dev
pip3 install protobuf
- 1
- 2
- 3
- 克隆代码
git clone git@github.com:minhanghuang/CyberRT.git
cd CyberRT
- 1
- 2
- 加载环境
third party(gflag gtest glog fastrtps fastcdr…)
// 拷贝环境到指定路径, 必须是/opt/cyber/env路径
sudo mkdir /opt/cyber
sudo cp -r env/ /opt/cyber/env
- 1
- 2
- 3
根据自己的终端运行对应的脚本,不知道自己的terminal是bash还是zsh,运行
echo $0
查看输出结果
// 二选一
// bash
source /opt/cyber/env/setup.bash
// zsh
source /opt/cyber/env/setup.zsh
- 1
- 2
- 3
- 4
- 5
- 6
- 生成protobuf文件
/opt/cyber/env/bin/protoc -I=cyber/proto/ --cpp_out=cyber/proto cyber/proto/*.proto
/opt/cyber/env/bin/protoc -I=cyber/examples/proto/ –cpp_out=cyber/examples/proto cyber/examples/proto/*.proto
- 1
- 2
- 3
- 编译
mkdir build && cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
make
- 1
- 2
- 3
- 运行examples
- pub/sub
pub
source setup.bash
./cyber/examples/cyber_example_talker
- 1
- 2
sub
source setup.bash
./cyber/examples/cyber_example_listener
- 1
- 2
- server/client
server
source setup.bash
./cyber/examples/cyber_example_server
- 1
- 2
client
source setup.bash
./cyber/examples/cyber_example_cilent
- 1
- 2
相关文章
- 流氓的Qvod Player v3.0(Build 3.5.0.64)
- "gitlab-runner-build": executable file not found in $PATH
- Sublime-Text 4 C++ Build-System
- MySQL Error number: MY-010882; Symbol: ER_INNODB_CANT_BUILD_INDEX_XLATION_TABLE_FOR; SQLSTATE: HY000 报错 故障修复 远程处理
- Win10 Build 21382发布:为Photoshop等应用优化HDR支持
- [下载] (简中/繁中) Windows 11 Build 22000.100版ISO 集成KB5004300
- 微软推出Windows 10 Dev Build 20231开发者预览版的ISO镜像文件
- 微软发布Windows 10 21H1 Build 19043首个预览版镜像可在虚拟机中安装
- Win10 Build 21296.1010发布:测试服务管道
- How to Build Your Own HTPC with Linux Operating System(linuxhtpc)
- 驱动用CMake简化MySQL驱动编译过程(cmake生成MySQL)
- 使用CMake编译MySQL 8库(cmake mysql8)
- 在CMake中轻松下载MySQL(cmake下载mysql)
- [下载] 微软推出Windows 11 Dev Build 22000.132版(集成KB5005190)
- 微软推Windows 11 Build 22000.132:继续修复Bug、一众工具升级