carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
10.88k stars 3.5k forks source link

Fanatec steering wheel (ffb)? #4766

Closed WambJamb closed 2 years ago

WambJamb commented 2 years ago

Hello together,

Is there anyone who got a different steering wheel than a g29 working with carla?

I am relatively new to vehicle simulation but I want to connect my fanatec wheel with carla and maybe even use force feedback. Currently I am using Carla for Windows.

Would be great to get some feedback on this topic and if possible maybe some advice how to set up another wheel.

Thanks a lot for the great work.

MattRowe18 commented 2 years ago

@WambJamb hi, thanks for your question.

It's entirely possible to connect multiple hardware configurations to CARLA. It would, however, depend very specifically on the hardware and the associated SDK. You can retrieve data on collisions, speed and telemetry through the CARLA API and you can also send control instructions to the user controlled vehicle through the CARLA API. Please refer to the CARLA Python API https://carla.readthedocs.io/en/latest/python_api/ and look at the example scripts provided in the CARLA build or package in the PythonAPI/examples folder. The Manual Control script demonstrates how to send keyboard instructions to a live vehicle in the CARLA simulation. https://github.com/carla-simulator/carla/blob/master/PythonAPI/examples/manual_control.py you might be able to adapt these to your needs. The other part will be the Fanatec SDK please refer to that documentation.

It will be challenging but possible. I would direct you to the CARLA Discord channels for this kind of question, you are more likely to find answers there.

Thanks

WambJamb commented 2 years ago

Fanatec states on their website that they use the same directInput interface as Logitech and that no SDK is needed for the basic functions like ffb and axis inputs. This means I would just need to somehow tell the python script to use the fanatec wheel instead of a G29. Currently the steering wheel example tries to find a Logitech wheel (which I do not have). I would like to change that to fanatec. I imagine this could be possible since they use the same interface?!

Does anybody have an idea on how to do something like that?

saicsk-deloitte commented 7 months ago

Hi @WambJamb. Have u succeeded in making Fanatec steering wheel connection with CARLA? If yes, can you please guide me

WambJamb commented 7 months ago

Hi @WambJamb. Have u succeeded in making Fanatec steering wheel connection with CARLA? If yes, can you please guide me

Sadly I did not. Sorry.