Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如果通过2个FlightGear进行战斗? #2

Open
liongis opened this issue Dec 15, 2022 · 3 comments
Open

请问如果通过2个FlightGear进行战斗? #2

liongis opened this issue Dec 15, 2022 · 3 comments

Comments

@liongis
Copy link

liongis commented Dec 15, 2022

通过FlightGear命令起动了两个FlightGear:
fgfs --fdm=null --native-fdm=socket,in,60,,5550,udp --multiplay=out,10,127.0.0.1,5000 --multiplay=in,10,127.0.0.1,5001 --callsign=Test1

fgfs --fdm=null --native-fdm=socket,in,60,,5550,udp --multiplay=out,10,127.0.0.1,5001 --multiplay=in,10,127.0.0.1,5000 --callsign=Test2

请问如何通过代码开启两个战斗机进行混战模拟?

@mrwangyou
Copy link
Owner

您好,感谢您对DBRL的关注,抱歉时隔这么久才来进行回复。

由于Stable Baselines 3的SAC算法仅支持单智能体深度强化学习训练,所以给出的示例仅包含操控一架战斗机进行训练的代码。如果您需要同时用智能算法操控两架飞机进行混战模拟,可以直接生成两个JsbsimFdm类的实例进行对战。

此外,如果需要的话,我们也可以在一个月内完成一份可供两架飞机同时使用智能方法对战的代码示例,供使用者参考。

@lifeiteng
Copy link

Mac 或 Ubuntu 上有可能跑起来吗?

@mrwangyou
Copy link
Owner

Mac 或 Ubuntu 上有可能跑起来吗?

您好,JSBSim和FlightGear是可以在Ubuntu上运行的,Dogfight 2 根据作者的回复,应该是无法在Ubuntu上运行的。Mac部分我也不是很清楚。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants