microsoft / AirSim

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

I want to use gimbal in setting.json #4077

Open kakipia opened 2 years ago

kakipia commented 2 years ago

What's your question?

How do I use a gimbal for my SubWindows camera using the setting.json file?

Describe what you are trying to accomplish and give some background.

I want to eliminate screen tilt when operating the camera manually.

Context Details

os windows10 unity 2019.3.12f1 { "SettingsVersion": 1.2, "SimMode": "Multirotor", "SpeedUnitFactor": 1.0, "SpeedUnitLabel": "m/s", "Cameras": { "Front_Center": { "CaptureSettings": [ { "ImageType": -1 } ], "Gimbal": { "Stabilization": 1, "Pitch": 0, "Roll": 0, "Yaw": Nan } } }, "SubWindows": [ { "WindowID": 0, "CameraName": "Front_Center", "ImageType": -1, "VehicleName": "", "Visible": false, "External": false }, { "WindowID": 1, "CameraName": "Rear_Center", "ImageType": -1, "VehicleName": "", "Visible": false, "External": false }, { "WindowID": 2, "CameraName": "Rear_Center", "ImageType": -1, "VehicleName": "Multirotor", "Visible": false, "External": false } ] }

Include details of what you've already done to find the answer.

jonyMarino commented 2 years ago

Hi @kakipia, and welcome! To what do you refer when saying "when operating the camera manually."? through setCameraPose()?

kakipia commented 2 years ago

No, I'm running the drone with a controller. Does setCameraPose() also have to be used when controlling SubWindows?

I am using the translation. Sorry if it's bad writing.

jonyMarino commented 2 years ago

No worries. I see what you are saying.