carla-simulator / carla

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

Unable to control vehicle in Carla with Logitech G29 steering wheel #2994

Closed elandg closed 4 years ago

elandg commented 4 years ago

I've been trying to run Carla using the manual_control_steeringwheel.py file, but am repeatedly getting "NoSectionError: No section: 'G29 Racing Wheel'". I will attach the full terminal output below. I am using the 0.9.9.2 Windows version of Carla, starting CarlaUE4.exe first, and using the Logitech G29 steering wheel. After reading some other posts, I have included a wheel_config.ini file in the carla folder, installed Logitech G Hub, and have tried using self._parser.read(r"C:/Users/Eric Landgraf/Default/Umich/UMTRI/CARLA_0.9.9.2-W/PythonAPI/examples/wheel_config.ini"), which should be the absolute path (both will be attached as text files). If anyone has gotten their Logitech G29 steering wheel to work with Carla, please let me know what I should change.

Capture

wheel_config.txt

manual_control_steeringwheel.txt

elandg commented 4 years ago

I apologize for the simple mistake, I had moved the "wheel_config.ini" file to the main carla folder without changing the absolute path. However, I am now getting an out of bounds error. image I have uncommented out the line print (jsInputs) and that has lead to the [] you see printed above the error message. I am going to try reconfiguring my g29 steering wheel and see if that helps. Any other suggestions are also appreciated.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

will-sloan commented 4 years ago

@elandg Did you figure out the list index out of range?

chengchihhong commented 3 years ago

@elandg Did you figure out the list index out of range?

This is because the number of axes is 0, making the value in jsInputs to be wrong. If you try self._joystick.get_numaxes(), you can see it.

To check if it is possible to do it in Win10, I have tried some workarounds but there seems to be no simple fix.

It makes sense to have a note in the release saying that it is just problematic to make the G29 steering wheel also work for Win10.

will-sloan commented 3 years ago

@chengchihhong Turns out pygame has a branch that has sdl2. Using that solved the problem.

Edit: this is what I did.
pip3 uninstall pygame
pip3 install pygame==2.0.0.dev6

seuwcs commented 3 years ago

@elandg Hello, if you have the problem solved?

Shroculus commented 2 years ago

Hi,

Could someone please let me know if this bug was fixed? because I am facing the exact same error with 0.9.13 Carla when trying to calibrate it with G920 steering wheel. also, could you direct me in the right direction if this has already been solved?

Thanks in advance.