microsoft / AirSim

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

Unreal Engine Computer Vision Mode - Keyboard Control #2068

Open JunzheJosephZhu opened 5 years ago

JunzheJosephZhu commented 5 years ago

Hello! I'm trying to do some computer vision with AirSim under Unreal Engine Computer Vision GameMode.

At the same time of using the computer vision mode, I'd like to control another boat asset from some other package. This package is operated based on WASD keyboard control. It usually works fine. However, after I entered AirSimGameMode the keyboard inputs are no longer detected, as when I pressed it the corresponding wires in the blueprint don't light up.

Is there any way to solve this?

msb336 commented 5 years ago

AirSimGameMode is overwriting those controls to use for changing the CV camera orientation. Are the keybindings on your boat determined by the type of game mode you are using, or are the determined in the blueprint for the boat object?

If they are hard coded into the game mode, you will need to modify your boat vehicle's blueprint to bind the correct keys to actions.

If it is already set up inside blueprint, all you will need to do is change which keys are bound to the boat's action so that they are not in conflict with those used by Airsim.