Skip to content

Commit

Permalink
合并 core 和 rmath 模块,并同步文档
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxi-scut committed Apr 26, 2024
1 parent 3818d58 commit 2a341a0
Show file tree
Hide file tree
Showing 64 changed files with 483 additions and 516 deletions.
2 changes: 1 addition & 1 deletion doc/intro.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RMVL 具有模块化结构,这意味着该软件包包含了多个共享或静

点击[此处](@ref tutorial_install)可以安装以上相机的 SDK

- @ref ml (**ml**),@ref rmath (**rmath**)
- @ref ml (**ml**), @ref opcua (**opcua**)

- ... 以及其他包含在 `modules` 文件夹中的模块。

Expand Down
15 changes: 15 additions & 0 deletions doc/tutorials/modules/algorithm/dft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
离散傅里叶变换 {#tutorial_modules_dft}
============

@author 赵曦
@date 2024/04/26
@version 1.0
@brief 离散傅里叶变换公式推导与使用

@prev_tutorial{tutorial_modules_ekf}

@next_tutorial{tutorial_modules_fft}

@tableofcontents

------
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@prev_tutorial{tutorial_modules_kalman}

@next_tutorial{tutorial_modules_union_find}
@next_tutorial{tutorial_modules_dft}

@tableofcontents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
@author RoboMaster Vision Community
@date 2023/01/11

@prev_tutorial{tutorial_modules_ra_heap}
@prev_tutorial{tutorial_modules_runge_kutta}

@next_tutorial{tutorial_modules_ort}
@next_tutorial{tutorial_modules_kalman}

@tableofcontents

Expand Down
15 changes: 15 additions & 0 deletions doc/tutorials/modules/algorithm/fft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
快速傅里叶变换 {#tutorial_modules_fft}
============

@author 赵曦
@date 2024/04/26
@version 1.0
@brief 快速傅里叶变换公式推导与使用

@prev_tutorial{tutorial_modules_dft}

@next_tutorial{tutorial_modules_union_find}

@tableofcontents

------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@version 1.0
@brief**Lagrange 插值****Newton 插值** 两种基函数选取方式介绍函数插值

@prev_tutorial{tutorial_modules_opcua}
@prev_tutorial{tutorial_modules_light}

@next_tutorial{tutorial_modules_least_square}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@version 2.0
@brief 卡尔曼滤波详细公式推导

@prev_tutorial{tutorial_modules_runge_kutta}
@prev_tutorial{tutorial_modules_ew_topsis}

@next_tutorial{tutorial_modules_ekf}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ ONNX-Runtime 分类网络部署库 {#tutorial_modules_ort}
@author
@date

@prev_tutorial{tutorial_modules_ew_topsis}

@next_tutorial{tutorial_modules_camera}
@prev_tutorial{tutorial_modules_ra_heap}

@tableofcontents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@prev_tutorial{tutorial_modules_union_find}

@next_tutorial{tutorial_modules_ew_topsis}
@next_tutorial{tutorial_modules_ort}

@tableofcontents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@prev_tutorial{tutorial_modules_func_iteration}

@next_tutorial{tutorial_modules_kalman}
@next_tutorial{tutorial_modules_ew_topsis}

@tableofcontents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@author RoboMaster Vision Community
@date 2023/01/11

@prev_tutorial{tutorial_modules_kalman}
@prev_tutorial{tutorial_modules_fft}

@next_tutorial{tutorial_modules_ra_heap}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
@date 2023/03/15
@brief 相机模块的基本使用,包括初始化、参数设置以及运行示例

@prev_tutorial{tutorial_modules_ort}
@prev_tutorial{tutorial_modules_opcua}

@next_tutorial{tutorial_modules_light}

@tableofcontents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
@author 赵曦
@date 2023/10/05

@prev_tutorial{tutorial_modules_ort}
@prev_tutorial{tutorial_modules_camera}

@next_tutorial{tutorial_modules_interpolation}

@tableofcontents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@prev_tutorial{tutorial_modules_serial}

@next_tutorial{tutorial_modules_interpolation}
@next_tutorial{tutorial_modules_camera}

@tableofcontents

Expand Down Expand Up @@ -511,7 +511,7 @@ int main()

#### 有代理 Pub/Sub

RMVL 目前暂不支持有代理的发布订阅机制。
@warning RMVL 目前暂不支持有代理的发布订阅机制。

### 参数加载 {#opcua_parameters}

Expand Down
File renamed without changes.
30 changes: 17 additions & 13 deletions doc/tutorials/modules/tutorial_modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,42 @@

------

### 1. 核心模块、教程
### 1. 工具类

#### 1.1 工具类
#### 通用工具

- @subpage tutorial_modules_aggregate_reflect

#### 通信

- @subpage tutorial_modules_serial
- @subpage tutorial_modules_opcua

#### 1.2 算法类
#### 硬件设备支持库

- @subpage tutorial_modules_camera
- @subpage tutorial_modules_light

### 2. 算法类

##### 数值计算
#### 数值计算

- @subpage tutorial_modules_interpolation
- @subpage tutorial_modules_least_square
- @subpage tutorial_modules_func_iteration
- @subpage tutorial_modules_runge_kutta

##### 数据处理
#### 数据与信号处理

- @subpage tutorial_modules_ew_topsis
- @subpage tutorial_modules_kalman 和 @subpage tutorial_modules_ekf
- @subpage tutorial_modules_dft 和 @subpage tutorial_modules_fft

### 2. 数据结构与算法
#### 数据结构与算法

- @subpage tutorial_modules_union_find
- @subpage tutorial_modules_ra_heap
- @subpage tutorial_modules_ew_topsis

### 3. 机器学习与深度学习支持库
#### 机器学习与深度学习支持库

- @subpage tutorial_modules_ort

### 4. 硬件设备支持库

- @subpage tutorial_modules_camera
- @subpage tutorial_modules_light
2 changes: 1 addition & 1 deletion extra/combo/include/rmvl/combo/combo.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#pragma once

#include "rmvl/camera/camutils.hpp"
#include "rmvl/rmath/uty_math.hpp"
#include "rmvl/core/math.hpp"
#include "rmvl/types.hpp"

#include "rmvl/core/dataio.hpp"
Expand Down
2 changes: 1 addition & 1 deletion extra/combo/src/armor/armor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

#include "rmvl/combo/armor.h"
#include "rmvl/rmath/transform.h"
#include "rmvl/core/transform.hpp"

#include "rmvlpara/camera/camera.h"
#include "rmvlpara/combo/armor.h"
Expand Down
2 changes: 1 addition & 1 deletion extra/combo/src/armor/armor_cal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <opencv2/imgproc.hpp>

#include "rmvl/combo/armor.h"
#include "rmvl/rmath/transform.h"
#include "rmvl/core/transform.hpp"

#include "rmvlpara/combo/armor.h"

Expand Down
2 changes: 1 addition & 1 deletion extra/combo/src/rune/rune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
*/

#include "rmvl/rmath/transform.h"
#include "rmvl/core/transform.hpp"

#include "rmvl/combo/rune.h"

Expand Down
2 changes: 1 addition & 1 deletion extra/compensator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rmvl_generate_para(
# gravity_compensator
rmvl_add_module(
gravity_compensator
DEPENDS compensator rmath
DEPENDS compensator
)

# gyro_compensator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "rmvl/compensator/gyro_compensator.h"
#include "rmvl/group/gyro_group.h"
#include "rmvl/rmath/transform.h"
#include "rmvl/core/transform.hpp"

#include "rmvlpara/camera/camera.h"
#include "rmvlpara/compensator/gyro_compensator.h"
Expand Down
2 changes: 1 addition & 1 deletion extra/compensator/test/test_gravity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#undef private
#undef protected

#include "rmvl/rmath/uty_math.hpp"
#include "rmvl/core/math.hpp"
#include "rmvlpara/compensator/gravity_compensator.h"

using namespace rm::numeric_literals;
Expand Down
2 changes: 1 addition & 1 deletion extra/decider/src/gyro_decider/gyro_decider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "rmvl/decider/gyro_decider.h"
#include "rmvl/group/gyro_group.h"
#include "rmvl/rmath/transform.h"
#include "rmvl/core/transform.hpp"
#include "rmvl/tracker/gyro_tracker.h"

#include "rmvlpara/camera/camera.h"
Expand Down
4 changes: 2 additions & 2 deletions extra/decider/src/rune_decider/rune_decider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include "rmvl/decider/rune_decider.h"
#include "rmvl/combo/rune.h"
#include "rmvl/core/timer.hpp"
#include "rmvl/rmath/transform.h"
#include "rmvl/rmath/uty_math.hpp"
#include "rmvl/core/transform.hpp"
#include "rmvl/core/math.hpp"

#include "rmvlpara/camera/camera.h"
#include "rmvlpara/decider/rune_decider.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

#include "rmvl/decider/translation_decider.h"
#include "rmvl/rmath.hpp"
#include "rmvl/core.hpp"

#include "rmvlpara/camera/camera.h"
#include "rmvlpara/decider/translation_decider.h"
Expand Down
2 changes: 1 addition & 1 deletion extra/detector/src/gyro_detector/inference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "rmvl/detector/gyro_detector.h"
#include "rmvl/group/gyro_group.h"
#include "rmvl/rmath/ew_topsis.hpp"
#include "rmvl/core/ew_topsis.hpp"

using namespace rm;
using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion extra/detector/src/gyro_detector/match.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "rmvl/detector/gyro_detector.h"
#include "rmvl/group/gyro_group.h"
#include "rmvl/rmath/union_find.hpp"
#include "rmvl/core/datastruct.hpp"

#include "rmvlpara/camera/camera.h"
#include "rmvlpara/detector/gyro_detector.h"
Expand Down
13 changes: 8 additions & 5 deletions extra/feature/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
find_package(OpenCV COMPONENTS imgproc calib3d REQUIRED)

rmvl_add_module(
feature INTERFACE
DEPENDS types
EXTERNAL ${OpenCV_LIBS}
)

# light_blob
Expand All @@ -10,7 +13,7 @@ rmvl_generate_para(
)
rmvl_add_module(
light_blob
DEPENDS feature rmath
DEPENDS feature
)

# pilot
Expand All @@ -20,7 +23,7 @@ rmvl_generate_para(
)
rmvl_add_module(
pilot
DEPENDS feature rmath
DEPENDS feature
)

# rune_center
Expand All @@ -30,7 +33,7 @@ rmvl_generate_para(
)
rmvl_add_module(
rune_center
DEPENDS feature rmath
DEPENDS feature
)

# rune_target
Expand All @@ -40,13 +43,13 @@ rmvl_generate_para(
)
rmvl_add_module(
rune_target
DEPENDS feature rmath
DEPENDS feature
)

# tag
rmvl_add_module(
tag
DEPENDS feature rmath
DEPENDS feature
)

rmvl_generate_module_para(feature)
Expand Down
2 changes: 1 addition & 1 deletion extra/feature/src/light_blob/light_blob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <opencv2/imgproc.hpp>

#include "rmvl/feature/light_blob.h"
#include "rmvl/rmath.hpp"
#include "rmvl/core.hpp"

#include "rmvlpara/feature/light_blob.h"

Expand Down
2 changes: 1 addition & 1 deletion extra/feature/src/light_blob/para_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "rmvl/feature/light_blob.h"
#include "rmvl/core/util.hpp"
#include "rmvl/rmath.hpp"
#include "rmvl/core.hpp"

using namespace rm;
using namespace std;
Expand Down
Loading

0 comments on commit 2a341a0

Please sign in to comment.