harfang3d / dogfight-sandbox-hg2

Air to air combat sandbox, created in Python 3 using the HARFANG 3D 2 framework.
GNU General Public License v3.0
144 stars 44 forks source link

About multi-uav confrontation #42

Open LLLZeSheng opened 1 year ago

LLLZeSheng commented 1 year ago

Hello, I would like to ask if the environment can only support up to 4 drones? Is there a function of adding fighter jets to study the application of multi-agent reinforcement learning in air combat?

ErkMkd commented 1 year ago

Hi ! you can setup the aircrafts you want here : https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/source/Missions.py#L585 For example:

cls.missions.append(Mission("Network mode", ["F16", "F16", "Rafale", "Eurofighter"], ["TFX", "Miuss", "Miuss"], 1, 1, Missions.network_mode_setup, Missions.network_mode_end_test, Missions.network_mode_end_phase_update))

you can add as many aircrafts you want, but beware of performance.

Hope this will help you ! Sincerely, Eric.

LLLZeSheng commented 1 year ago

Ok, thank you very much!

LLLZeSheng commented 1 year ago

Is there a maximum of two aircraft on each aircraft carrier? After I set up multiple planes according to your method, only 4 planes at most (two on each aircraft carrier) are displayed, why is this?

ErkMkd commented 1 year ago

Oh, sorry, The Turkish team had already asked us how to configure the "network_mode" scenario. For the "network mode" configuration, there is a JSON configuration: https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/source/Missions.py#L465

The configuration file is here: https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/source/scripts/network_mission_config.json

LLLZeSheng commented 1 year ago

ok, i've solved it.

123456djtdjt commented 1 year ago

Hi! I ’m also working on the problem of multiagent air combat, I'm confused about the reward function in this environment. Can you help me?

123456djtdjt commented 1 year ago

你好,我想问下您用这套系统搭建出多智能体空战环境了么?我最近也在研究这方面的内容,想和你探讨下