-
Notifications
You must be signed in to change notification settings - Fork 446
/
Copy pathx1_cfg.yaml
62 lines (62 loc) · 1.96 KB
/
x1_cfg.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
aimrt:
plugin:
plugins:
- name: ros2_plugin
path: ./libaimrt_ros2_plugin.so
options:
node_name: x1_rl_ctrl_node
executor_type: MultiThreaded # SingleThreaded/StaticSingleThreaded/MultiThreaded
executor_thread_num: 4
log: # 日志配置
core_lvl: INFO # Trace/Debug/Info/Warn/Error/Fatal/Off
backends:
- type: console # 控制台
- type: rotate_file # 文件
options:
path: ./log
filename: x1_rl_ctrl.log
max_file_size_m: 4
max_file_num: 10
executor: # 执行器配置
executors:
- name: rl_control_pub_thread # 创建一个单线程执行器
type: simple_thread
- name: joy_stick_pub_thread
type: simple_thread
channel: # 消息队列相关配置
backends: # 消息队列后端配置
- type: local
- type: ros2
pub_topics_options: # 为 publish topic 选择后端
- topic_name: "(.*)"
enable_backends: [local, ros2]
sub_topics_options: # 为 subscribe topic 选择后端
- topic_name: "(.*)"
enable_backends: [local, ros2]
rpc: # rpc相关配置
backends: # rpc后端配置
- type: local
- type: ros2
clients_options: # 为 client 选择后端
- func_name: "(.*)"
enable_backends: [local]
servers_options: # 为 server 选择后端
- func_name: "(.*)"
enable_backends: [local, ros2]
module: # 模块配置
pkgs: # 要加载的动态库配置
- path: ./libpkg1.so
enable_modules:
- JoyStickModule
- DcuDriverModule
- RlControlModule
modules: # 模块
- name: JoyStickModule
log_lvl: INFO
cfg_file_path: ./cfg/joy_stick_module/joy_x1.yaml
- name: DcuDriverModule
log_lvl: DEBUG
cfg_file_path: ./cfg/dcu_driver_module/dcu_x1.yaml
- name: RlControlModule
log_lvl: INFO
cfg_file_path: ./cfg/rl_control_module/rl_x1.yaml