AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Steering wheel on Ubuntu

Open EdnilsonAraujo opened this issue 8 years ago • 6 comments

Hello. AirSim really is a great job. I intend to use it in my research with an autonomous car. I need to get a steering wheel + pedal assembly. Do you suggest any models that are compatible with AirSim + Ubuntu? I saw in the image AirSimCarManual.gif that you used a steering wheel. Could you tell me the model of the steering wheel you used? Tks.

EdnilsonAraujo avatar Mar 21 '18 16:03 EdnilsonAraujo

We have used Logitch G920 and it works out of the box. However we have tested only under Windows but you might be able to work in Linux with little or no changes. You will need to following settings to enable steering wheel controls:

"PhysXCar" : {
    "RC": {
        "RemoteControlID": 0
    }
}

Also a word of caution: These devices are not precise and experience hasn't been as realistic as we would have liked to.

sytelus avatar Mar 23 '18 05:03 sytelus

Hi @sytelus, after adding those settings to "settings.json", the car starts to turn left and have a steering angle "-1.25" every time I run the simulator. Some bottons and the steering wheel work now, but the car is out of control.

JyNing04 avatar Apr 12 '18 21:04 JyNing04

Hi @sytelus, thanks for help me!

EdnilsonAraujo avatar Apr 18 '18 11:04 EdnilsonAraujo

@BrianN92 I meet the same problem just as you man. You can do some changes in file "CarPawn.cpp" as following:

//joystick_controls_.steering = joystick_state_.left_y * 1.25;
//joystick_controls_.throttle = (-joystick_state_.right_x + 1) / 2;
joystick_controls_.steering = joystick_state_.left_x * 1.25;
joystick_controls_.throttle = (joystick_state_.left_y + 1) / 2;
joystick_controls_.brake = -joystick_state_.right_z + 1;

DrifterFun avatar Jun 14 '18 13:06 DrifterFun

Thanks @DrifterFun ! I tried, but it didn't work...

JyNing04 avatar Jul 18 '18 20:07 JyNing04

We have used Logitch G29 by the steps of https://microsoft.github.io/AirSim/docs/steering_wheel_installation/ it did not work,the speed is always 0,i can not move the car. what can i do? @sytelus

wintersoom avatar Jul 09 '19 05:07 wintersoom