microsoft / AirSim

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

API control not working in AirSim Unity #1539

Open yashkaushal opened 6 years ago

yashkaushal commented 6 years ago

Hi,

I want to control Quadrotor in Unity using API commands and tested various API commands with it. The moveByRC command is not working in AirSim Unity it does not give any error as well.

Steps to reproduce:

I tested it with other commands as well and the commands which use any AirSim struct - yawmode, drivetrain or rcdata are not working from API calls. (I've not tested yawmode and drivetrain commands with the latest build).

I'm using Windows 10 pro version 1803, AirSim version 1.2(today's build), python 2.7.15, unity version 2018.2.8.

Thanks, Yash Kaushal

josedeo commented 6 years ago

Hi Yash, Would you mind making sure the setttings.json file under %USERPROFILE%\Documents\AirSim look something like this below? It seems to be working for me with these settings. If its not like that, can you give it a try? Thanks --- Jose

Here's what I have in mine:

{
  "SimMode": "Multirotor",
  "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
  "SettingsVersion": 1.2,
  "Vehicles": {
    "SimpleFlight": {
      "VehicleType": "SimpleFlight",
      "DefaultVehicleState": "Armed",
      "EnableCollisionPassthrogh": false,
      "EnableCollisions": true,
      "AllowAPIAlways": true,
      "RC": {
        "RemoteControlID": 0,
        "AllowAPIWhenDisconnected": false
      }
    }
   }
}
RVBldr commented 5 years ago

@yashkaushal Can you confirm that this is resolved?

yashkaushal commented 5 years ago

I'm no longer using Unity with AirSim but testing using Unreal with AirSim build from source of 14-Dec-2018 is giving a very jerky (almost vibrating)movement of QuadRotor.

ho0-kim commented 5 years ago

I have the same issue. With moveByRC, I can't control pitch, roll and yaw. It works only with throttle level and it vibrates when it moves up as @yashkaushal mentioned.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.