RM_Vison/rm_auto_aim/README.md

62 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# rm_auto_aim
## Overview
RoboMaster 装甲板自瞄算法模块
<img src="docs/rm_vision.svg" alt="rm_vision" width="200" height="200">
该项目为 [rm_vision](https://github.com/chenjunnn/rm_vision) 的子模块
若有帮助请Star这个项目感谢~
### License
The source code is released under a [MIT license](rm_auto_aim/LICENSE).
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
Author: Chen Jun
运行环境Ubuntu 22.04 / ROS2 Humble (未在其他环境下测试)
![Build Status](https://github.com/chenjunnn/rm_auto_aim/actions/workflows/ros_ci.yml/badge.svg)
## Building from Source
### Building
在 Ubuntu 22.04 环境下安装 [ROS2 Humble](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html)
创建 ROS 工作空间后 clone 项目,使用 rosdep 安装依赖后编译代码
cd ros_ws/src
git clone https://github.com/chenjunnn/rm_auto_aim.git
cd ..
rosdep install --from-paths src --ignore-src -r -y
colcon build --symlink-install --packages-up-to auto_aim_bringup
### Testing
Run the tests with
colcon test --packages-up-to auto_aim_bringup
## Packages
- [armor_detector](armor_detector)
订阅相机参数及图像流进行装甲板的识别并解算三维位置输出识别到的装甲板在输入frame下的三维位置 (一般是以相机光心为原点的相机坐标系)
- [armor_tracker](armor_tracker)
订阅识别节点发布的装甲板三维位置及机器人的坐标转换信息将装甲板三维位置变换到指定惯性系一般是以云台中心为原点IMU 上电时的 Yaw 朝向为 X 轴的惯性系)下,然后将装甲板目标送入跟踪器中,输出跟踪机器人在指定惯性系下的状态
- auto_aim_interfaces
定义了识别节点和处理节点的接口以及定义了用于 Debug 的信息
- auto_aim_bringup
包含启动识别节点和处理节点的默认参数文件及 launch 文件