无人机飞控系统

 火... [复制链接]  1142查看
易西 发表于 2023-12-5 21:27:53 | 显示全部楼层 |阅读模式
无人机飞控系统

[发帖际遇]: 易西 被钱袋砸中进医院,看病花了 5 金钱. 幸运榜 / 衰神榜
 楼主| 易西 发表于 2023-12-5 21:30:24 | 显示全部楼层

GAAS开源的无人机自主飞行软件

本帖最后由 易西 于 2023-12-5 21:40 编辑

GAAS开源的无人机自主飞行软件
https://github.com/generalized-intelligence/GAAS
参考
 楼主| 易西 发表于 2023-12-5 21:29:05 | 显示全部楼层
 楼主| 易西 发表于 2023-12-5 21:29:41 | 显示全部楼层
[发帖际遇]: 易西 在论坛发帖时没有注意,被小偷偷去了 1 金钱. 幸运榜 / 衰神榜
 楼主| 易西 发表于 2023-12-5 21:34:29 | 显示全部楼层
and refactored all modules in cpp.

Build with:
Tested on OS: Ubuntu 18.04; PX4(for simulation only) 1.8.0.

step<1> Check your network status
wget www.google.com
step<2> tools
(optional) install cuda 10.2 for all gpu-based algorithms, like icp_lidar_localization and the gpu version of ndt_localization.

You may need to upgrade cmake to at least 3.13 for building package icp_lidar_localization.

sudo apt install vim bwm-ng htop tmux git net-tools cmake-gui iotop curl
step<3> docker(for simulation only)
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

sudo usermod -aG docker [your username]

docker pull gaas/mavros-gazebo7-px4
step<4> ros_melodic
./install_ros_melodic.sh
step<5> opencv 3.4.5
sudo apt install cmake-qt-gui
[Download opencv 3.4.5 and unzip]

cd opencv-3.4.5/
mkdir build&&cd build&&cmake-gui ..
[Configure your opencv cmake options in cmake-gui]

make -j4&&sudo make install
step<6> glog
git clone https://github.com/google/glog.git
cd glog
git checkout -b v0.4.0
mkdir build&&cd build
cmake ..
make
sudo make install
step<7> pcl 1.8.0 build from source
[Download pcl 1.8.0 and unzip]

cd pcl-1.8.0
mkdir build&&cd build&&cmake-gui ..
[Configure your pcl cmake options in cmake-gui]

make -j4
sudo make install
step<8> (optional) upgrade your gazebo for simulation
cd GAAS/simulation
./upgrade_gazebo.sh
Getting Started
To build the project, setup all dependencies, run:

./build_all.sh
To run GAAS_contrib algorithms:

cd algorithms
./run_gaas_contrib_algorithms.sh
Start simulation (or play a rosbag instead):

cd simulation&&./scripts/prepare_simulation.sh
or:

rosbag play --clock [path_to_your_rosbag]
And checkout your L5 flying car demo in simulation environment!

License
GAAS is under BSD 3-Clause License.

Features
Simulation env with 32 lines lidar and stereo cameras.

Spinning lidar mapping and NDT matching localization.

Check out simulation/README.md to get more details of simulation env setup.

Roadmap:
1. Gazebo simulation env construction, including spinning lidars and non-repetitive lidars and stereo cameras.
(1). Livox Horizon + Forward Stereo Camera --Done.

(2). Velodyne HDL-32 + Forward Stereo Camera --Done.

2. Accelerate compiling and deployment of GAAS.
3. Implement some LIDAR (mechanical/solid-state) based algorithms, and implement one key start in the simulation environment.
Checklist:
(1). Lidar Points to Image Projection-- Done.

(2). Euclidean Cluster Extraction. --Done.

(3). Global Coordinate based HD-Map Building. --Done.

(4). NDT Lidar Localization(CPU/Cuda) --Done.

(5). Downsampling Node --Done.

(6). A* Path Planner --Done.

(7). Refactored px4 Offboard Commander --Done.

(8). Dynamic Obstacles Generation and Replanning --Done.

(9). Jetson AGX Xavier Adaptation --Done.

(10). Interactive GUI Target Selector in HD-maps --Done.

(11). Multiple Submaps Switching --TODO

(12). IMU-Preintegration and High-Frequency Localization --Done.

(13). VTOL Mode Switching --TODO.

(14). Decentralized Robust Ground Control Station --TODO.

(15). Generalized Flight Controller State Management --Done.

(16). PX4 State Reporter --Done.

(17). HUD Module --Done.

(18). Cuda-based Multiple Lidar Pointclouds ICP Localization --Done.

(19). Ground Points Removal Preprocessing --Done.

(20). System State Surveillance Service --Done.

(21). HTTP Server on Ground Control Station --TODO.

(22). Multiple Spinning Lidar Support --Done.

(23). Airsim Simulation Env Support --Done.

Current status:
Adding logics for flight stage manager module. Including flight stage transfer service clients(triggered by mission config file) and servers(including localization module, flight control commander module and target navigation module.)
 楼主| 易西 发表于 2023-12-5 21:34:47 | 显示全部楼层

构建方式:

在操作系统上测试:Ubuntu 18.04X4(仅用于模拟) 1.8.0.

步骤<1> 检查您的网络状态
wget www.google.com
步骤<2>工具
(可选)为所有基于 GPU 的算法安装 CUDA 10.2,例如 icp_lidar_localization 和 GPU 版本的 ndt_localization。

您可能需要将 cmake 升级到至少 3.13 才能构建软件包icp_lidar_localization。

sudo apt install vim bwm-ng htop tmux git net-tools cmake-gui iotop curl
步骤<3> docker(仅用于模拟)
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

sudo usermod -aG docker [your username]

docker pull gaas/mavros-gazebo7-px4
步骤<4> ros_melodic
./install_ros_melodic.sh
步骤<5>OpenCV 3.4.5
sudo apt install cmake-qt-gui
[下载 opencv 3.4.5 并解压]

cd opencv-3.4.5/
mkdir build&&cd build&&cmake-gui ..
[在 cmake-gui 中配置你的 opencv cmake 选项]

make -j4&&sudo make install
步骤<6> glog
git clone https://github.com/google/glog.git
cd glog
git checkout -b v0.4.0
mkdir build&&cd build
cmake ..
make
sudo make install
步骤<7>从源代码构建 PCL 1.8.0
[下载 pcl 1.8.0 并解压]

cd pcl-1.8.0
mkdir build&&cd build&&cmake-gui ..
[在 cmake-gui 中配置 pcl cmake 选项]

make -j4
sudo make install
步骤<8>(可选)升级您的凉亭以进行模拟
cd GAAS/simulation
./upgrade_gazebo.sh
开始
若要生成项目,请设置所有依赖项,运行:

./build_all.sh
要运行GAAS_contrib算法,请执行以下操作:

cd algorithms
./run_gaas_contrib_algorithms.sh
开始模拟(或改为玩 rosbag):

cd simulation&&./scripts/prepare_simulation.sh
艺术

rosbag play --clock [path_to_your_rosbag]
并在模拟环境中查看您的 L5 飞行汽车演示!

许可证
GAAS 遵循 BSD 3 条款许可证。

特征
使用 32 线激光雷达和立体摄像头的模拟环境。

旋转激光雷达测绘和无损检测匹配定位。

查看 simulation/README.md 以获取有关仿真环境设置的更多详细信息。

路线图:
1. 凉亭模拟环境构建,包括旋转激光雷达和非重复激光雷达和立体摄像头。
(1). Livox Horizo n + 前置立体摄像头 --完成。

(2). Velodyne HDL-32 + 前置立体摄像头 --完成。

2. 加快GAAS的编译和部署。
3.实现一些基于LIDAR(机械/固态)的算法,在仿真环境中实现一键启动。
清单:
(1).激光雷达指向图像投影--完成。

(2). 欧几里得团簇提取.--做。

(3).基于全球坐标的高精地图构建。--做。

(4). NDT激光雷达定位(CPU/CUDA) --完成。

(5). 下采样节点 --完成。

(6). A* 路径规划器 --完成。

(7). 重构 px4 Offboard Commander --Done.

(8).动态障碍物的产生和重新规划--完成。

(9). Jetson AGX Xavier 适配 --完成.

(10). 高清地图中的交互式 GUI 目标选择器 --Done.

(11). 多子映射切换 --TODO

(12). IMU-预集成和高频定位--完成.

(13). VTOL模式切换--TODO.

(14). 分散式鲁棒地面控制站--TODO.

(15). 广义飞控状态管理--完成.

(16). PX4 状态报告器 --完成.

(17). HUD模块--完成。

(18). 基于Cuda的多激光雷达点云ICP定位--完成.

(19). 接地点去除预处理 --完成.

(20). 系统状态监视服务 --完成.

(21). HTTP服务器地面控制站--TODO.

(22). 多旋转激光雷达支持 --完成.

(23). Airsim Simulation Env 支持 --Done.

 楼主| 易西 发表于 2025-1-18 16:24:04 | 显示全部楼层
 楼主| 易西 发表于 2025-1-18 16:25:41 | 显示全部楼层
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

邮箱|首页|小黑屋|吾侪 ( 蜀ICP备2020029307号-4 )

GMT+8, 2026-6-21 17:43 , Processed in 0.038503 second(s), 29 queries .

Powered by Discuz! X3.5

Copyright © , 吾侪网

快速回复 返回顶部 返回列表