NVIDIA-AI-IOT / jetracer

An autonomous AI racecar using NVIDIA Jetson Nano
MIT License
1.06k stars 319 forks source link

Jetracer dosen't respond to gamepad mouvements, steering and throttles values #143

Open MounaSamaali opened 1 year ago

MounaSamaali commented 1 year ago

hello, I'am starting controlling the jetracer for the first time. However Jetracer doesn't respond to steering and throttle values coded in python with these lines : car.steering = 0.4 car.trottle =0.2 and also the jetracer dose not respond to the gamepad mouvements, I had theses errors on coding.

__### [IndexError Traceback (most recent call last) in ----> 1 left_link = traitlets.dlink((controller.axes[1], 'value'), (car, 'steering'), transform=lambda x: -x) # link controller 0.5 controller axes 0 value to car steering 2 right_link = traitlets.dlink((controller.axes[5], 'value'), (car, 'throttle'), transform=lambda x: -x) # link 0.3 axes 1 value to throttle**_ IndexError: tuple index out of range ]([url](

url_**

))

please any help for controlling the movement of the jetracer,

Thank you in advance Mouna SAMAALI