栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

Ununtu20.04安装OSI及相关组件

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Ununtu20.04安装OSI及相关组件

ubuntu20.04安装OSI open simulation interfaceosi-visualizerosi-sensor-model-packaging

open simulation interface

https://github.com/OpenSimulationInterface/open-simulation-interface

依赖关系
安装cmake3.10.2

$ sudo apt-get install cmake

安装pip3和缺少 python 包

$ sudo apt-get install python3-pip python3-setuptools

安装protobuf3.0.0

$ sudo apt-get install libprotobuf-dev protobuf-compiler

构建和安装以供C 使用

$ git clone https://github.com/OpenSimulationInterface/open-simulation-interface.git
$ cd open-simulation-interface
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install

构建和安装Python使用

$ git clone https://github.com/OpenSimulationInterface/open-simulation-interface.git
$ cd open-simulation-interface
$ sudo pip3 install virtualenv
$ virtualenv -p python3 venv
$ source venv/bin/activate
$ python3 -m pip install .
osi-visualizer

https://github.com/OpenSimulationInterface/osi-visualizer

官网测试在Ubuntu18.04可以使用
所需依赖
cmake ( 3.5)
Qt ( 5.5.0)
ZeroMQ ( 4.2.1) OSI Visualizer 需要使用 ZeroMQ 库来完成不同传感器/交通/场景模拟器之间的套接字通信。请注意 还需要 C 绑定。
protobuf ( 2.6.1)
FMILibrary ( 2.0.2)
OSI ( 3.1.2)

安装及运行

$ git clone https://github.com/OpenSimulationInterface/osi-visualizer.git
$ cd osi-visualizer
$ git submodule update --init
$ mkdir build
$ cd build
$ cmake ..
$ make -j8
$ ./osi-visualizer
osi-sensor-model-packaging

https://github.com/OpenSimulationInterface/osi-sensor-model-packaging
安装cmake3.10.2

$ sudo apt-get install cmake

安装protobuf3.0.0

$ sudo apt-get install libprotobuf-dev protobuf-compiler

构建和安装示例

$ git clone https://github.com/OpenSimulationInterface/osi-sensor-model-packaging.git
$ cd osi-sensor-model-packaging
$ git submodule update --init
$ cd examples
$ mkdir -p build
$ cd build
$ cmake ..
$ make
$ sudo make install

安装完成后
lib文件在/usr/local/lib/osi3/
h文件在/usr/local/include/osi3/

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/267910.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号