microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.05k stars 4.48k forks source link

How to use both car and UAV. #4644

Open bitshenwenxiao opened 1 year ago

bitshenwenxiao commented 1 year ago

Question

What's your question?

I want to simulate this situation: A car runs in the ground and an UAV follows the car in the sky. I add car and UAV in "settings.json". If I chose car mode, the UAV is not loaded in UE4. If I chose UAV mode, the car is not loaded in UE4.

Include context on what you are trying to achieve

the settings is as follow:

{ "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md", "SettingsVersion": 1.2, "SimMode": "Car", "CameraDefaults": { "CaptureSettings":[{ "ImageType":0, "Width":1920,"Height":1080, "FOV_Degrees": 90,"AutoExposureSpeed": 100,"MotionBlurAmount": 0 }] }, "Vehicles": { "AAA": { "VehicleType": "SimpleFlight", "X": 100, "Y": 100, "Z": -10, "Yaw": -135 }, "CARA": { "VehicleType": "PhysXCar", "DefaultVehicleState": "", "AutoCreate": true, "EnableCollisionPassthrogh": false, "EnableCollisions": true, "RC": { "RemoteControlID": 0 }, "Pitch": 0, "Roll": 0, "Yaw": 0 },

    "CARB": {
        "VehicleType": "PhysXCar",
        "DefaultVehicleState": "",
        "AutoCreate": true,
        "EnableCollisionPassthrogh": false,
        "EnableCollisions": true,
        "RC": {
            "RemoteControlID": 1
        },
        "X": 0, "Y":  -30, "Z": 0,
        "Pitch": 0, "Roll": 0, "Yaw": 0
    }
}

}

dzywater commented 1 year ago

see #4340