Giter VIP home page Giter VIP logo

Comments (12)

BrianN92 avatar BrianN92 commented on May 18, 2024 1

Fixed!! I deleted that json and put the x360ce in the correct directory. Now I can use the steering wheel to control the car! Thank you so much! I could have a good sleep now.

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on May 18, 2024

What are you using to control the car? If you're using the keyboard to drive, then there will only be -1, 0, 1 steering angles, as a key is only ever up or down. We used this steering wheel when generating data. You can also use an xbox controller as input, and you will get continuous steering angles if you map the steering controls to one of the sticks.

from autonomousdrivingcookbook.

BrianN92 avatar BrianN92 commented on May 18, 2024

@mitchellspryn Thanks for the reminder! Yes I used keyboard to drive. I tried the Logitech G29 steering wheel before, but it could not use on Airsim. Which is another unsolved issue, haha.

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on May 18, 2024

Are you using x360ce to map the inputs to xbox controller inputs? We had to do that.

from autonomousdrivingcookbook.

BrianN92 avatar BrianN92 commented on May 18, 2024

@mitchellspryn Yes, I tried x360ce to map the inputs, but it still could not work.

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on May 18, 2024

from autonomousdrivingcookbook.

BrianN92 avatar BrianN92 commented on May 18, 2024

Yes, I did as you said. It did not work.

from autonomousdrivingcookbook.

BrianN92 avatar BrianN92 commented on May 18, 2024

@mitchellspryn I bought the steering wheel you mentioned above. It did not work. Every time I connect the steering wheel with Airsim, the vehicle keep turning left with the "steering value: -1.25". The "Accel" value was 0.5 all the time. I cannot use the wheel to control car's direction, but I can do it by pushing the braking panels. Besides, there was no values of "steering', "throttle" or "break" inside the "rec.txt" file. It was so weird, so could you tell me how did you use this steering wheels to control the car? Thank you!

I did put the x360ce exe in the same directory as the AirSim binary.

from autonomousdrivingcookbook.

BrianN92 avatar BrianN92 commented on May 18, 2024

I found this code in CarPawn.cpp. Seams like it is related to my problems

image

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on May 18, 2024

Hm. Are you using the binary that we provided, or the one from the AirSim page? The version we've tested with is a few iterations behind, and doesn't have that code...

from autonomousdrivingcookbook.

BrianN92 avatar BrianN92 commented on May 18, 2024

Actually, I tried both. They had the same problems. I added "PhysXCar" : {
"RC": {
"RemoteControlID": 0
}
} to "AD_Cookbook_Start_AirSim"file and put the x360ce exe in the "AD_Cookbook_AirSim" folder.

from autonomousdrivingcookbook.

mitchellspryn avatar mitchellspryn commented on May 18, 2024

Wait. What? Adding that json to the powershell script should either do nothing or cause a syntax error.

You need to put the x360ce in the same directory as the binary that is running. I think that would be $/AD_Cookbook_AirSim/JustAssets/Binaries/Win64, not the root directory. Also, make sure that when you push buttons on the steering wheel, the corresponding buttons light up in the x360ce GUI.

from autonomousdrivingcookbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.