使用a*算法为四架直升机规划路径的包
path-planning-kholysa的Python项目详细描述
A*路径规划包
概述
这是一个简单的包,为四架直升机规划一条路径。它公开了两种方法
- 设置障碍
- 获取路径
安装
需要:
- python 3.6
- 点
- Python纹
Linux&windows&MacOS环境
- 在文档中的某个位置创建一个python虚拟环境。运行下面的说明或遵循本指南https://docs.python.org/3/tutorial/venv.html
a)运行此命令python3 -m venv venvName
创建python3虚拟环境。
b)运行此命令cd venvName
以进入虚拟环境。
(三)
i. (Linux only, required)Run this command source `myenv\Scripts\activate` to source the virtual environment's python installation. Your terminal should now show your venvName before each line.
ii. (Windows only, required)Run this command source `bin/activate` to source the virtual environment's python installation. Your terminal should now show your venvName before each line.
- 安装所需的pip包运行以下说明
(仅限Linux,可选)运行此命令which pip
。确保输出指向venv中的文件。
b)运行此命令pip install matplotlib numpy
以安装所需的软件包。
如何在coptermove脚本中使用
步骤
测试脚本 a)运行脚本 b)确保图形上的输出看起来良好
打包到库中并上传到“pypi”库存储库;完整的文档在这里https://packaging.python.org/tutorials/packaging-projects/ a)
python3 setup.py sdist bdist_wheel
b)pip install twine
c)在setup.py
中增加版本号 c)twine upload dist/*
在coptermove脚本中安装此库 a)步骤
3)a)
这里https://github.com/kholysa/CopterMove#linux-and-macos-environments