NVIDIA-AI-IOT / jetracer

An autonomous AI racecar using NVIDIA Jetson Nano
MIT License
1.07k stars 321 forks source link

Road Following turn opposite direction #77

Closed diamondbarcode closed 3 years ago

diamondbarcode commented 4 years ago

I am using a waveshare kit for jetracer it took me some time to get it to run as I am totally a noob on this. I finally get it to run but it appears to me my car turn left when it suppose to turn right and turn right when it is supposed to turn left.

How do I fix this?

TimIWT commented 4 years ago

Try to set steering_gain to a negative value, it worked out for me.

diamondbarcode commented 4 years ago

Try to set steering_gain to a negative value, it worked out for me.

what is your setting in this area?

this is my setting:

STEERING_GAIN = 0.95 STEERING_BIAS = -0.05

car.throttle = 0.69

TimIWT commented 4 years ago

My settings are like this:

STEERING_GAIN = -0.7 STEERING_BIAS = 0.00

Changing your steering_gain to -0.95 should solve the problem.

diamondbarcode commented 4 years ago

@TimIWT Thank massive ... it actually another one that needs to go negative. I keep change bias to negative as instruction said I must read it wrong

I just use ur setting it to turn correct direction but it does not completely follow the whole loop it at less turn correct and stop make turn .. ( turn half of full ) maybe my training images not good yet it only got 900 pictures .. but I am stepping into the right direction with this, not the crazy car.

TimIWT commented 4 years ago

@chealyte Unfortunately i am not sure what you mean but, if your car is missing turns, try to increase the steering_gain value (try for example -1.2), if your car is taking the turns too early, try to decrease the steering_gain value (for example -0.6)

diamondbarcode commented 4 years ago

i got it to work by increase gain and with new training, however, it seems to drive but in that the designed road .. see video .. i am not sure it is because of bad training or it is more setting to change ..

I trained base on 2200 snapshot of the track with 25 epoch STEERING_GAIN = -0.98 STEERING_BIAS = 0.00

https://www.youtube.com/watch?v=79YcqeYRXHw

diamondbarcode commented 3 years ago

problem solve by just make negative gain