wzljhboy c2944da636 | 3 years ago | |
---|---|---|
Aerofoil System | 3 years ago | |
Avionics | 3 years ago | |
Carrier System | 3 years ago | |
Controller | 3 years ago | |
Editor | 3 years ago | |
Electrical System | 3 years ago | |
Engine System | 3 years ago | |
Intelligence | 3 years ago | |
Manager System | 3 years ago | |
UI | 3 years ago | |
Utilities | 3 years ago | |
Weapon System | 3 years ago | |
Weather System | 3 years ago | |
.gitignore | 3 years ago | |
Aerofoil System.meta | 3 years ago | |
Avionics.meta | 3 years ago | |
Carrier System.meta | 3 years ago | |
Controller.meta | 3 years ago | |
Editor.meta | 3 years ago | |
Electrical System.meta | 3 years ago | |
Engine System.meta | 3 years ago | |
Intelligence.meta | 3 years ago | |
Manager System.meta | 3 years ago | |
README.md | 3 years ago | |
README.md.meta | 3 years ago | |
UI.meta | 3 years ago | |
Utilities.meta | 3 years ago | |
Weapon System.meta | 3 years ago | |
Weather System.meta | 3 years ago |
此脚本库包含了Unity空战项目Silantro中最主要的 c# scripts,通过修改这些c#脚本可以控制飞机、环境、雷达、武器等等。(Silantro其他的文件基本是资源文件,通常无需改动。)
文件在silantro项目中的位置:.\Silantro\Project\Assets\Silantro Simulator\Fixed Wing\Scripts
(测试过将原文件备份后,unity打开项目会找不到对应的脚本,因此建议直接git clone 然后覆盖掉原文件)
├─Aerofoil System
├─Avionics
├─Carrier System
├─**Controller**
├─Editor
├─Electrical System
├─Engine System
├─**Intelligence**
├─**Manager System**
├─UI
├─Utilities
├─Weapon System
└─Weather System
目前最主要的c#脚本文件在 Manager System 、Controller、Intelligence分别控制:运行主逻辑、飞机逻辑、飞机飞行逻辑。
与python中相对应的agent实体是\Scripts\Intelligence\Controller\SilantroAgent.cs
SilantroAgent中的OnActionReceived方法用来接收action。
SilantroAgent中CollectObservations方法用来收集state
两者共同构成类似gym中 state = env.step(action)的概念。
理解有限,有待后续更新。