hamuchiwa / AutoRCCar

OpenCV Python Neural Network Autonomous RC Car
BSD 2-Clause "Simplified" License
3.33k stars 1.48k forks source link

error while running rc_drive.py #185

Closed Devanshice020 closed 5 years ago

Devanshice020 commented 5 years ago

An exception has occurred, use %tb to see the full traceback.

SystemExit

C:\Users\Krishna\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py:3304: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D. warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)

I am getting this error while running rc_driver.py

SaiSurya9999 commented 5 years ago

It may be libraries issue do run environment.yml file to create environment. And then activate it before execution. Even though if problem exist compare the versions with repository versions.

hamuchiwa commented 5 years ago

@Devanshice020 Does it say what exception?

Devanshice020 commented 5 years ago

File "C:/Users/Krishna/Desktop/RPI/AutoRCCar-master/computer/rc_driver.py", line 160, in handle sys.exit()

SystemExit

It shows this error while i run %tb in shell

hamuchiwa commented 5 years ago

@Devanshice020 Run the code in a terminal instead, sys.eixt() will exit python.

Devanshice020 commented 5 years ago

Thanks @hamuchiwa for your help and support I have solved this issue by importing every function from rc_driver_help.py manually. And also by defining d_sensor_thresh = 30 d_stop_light_thresh = 25 d_stop_sign = d_stop_light_thresh d_light = d_stop_light_thresh outside every function.

Devanshice020 commented 5 years ago

After this i have another issue while running rc_driver.py 12.5 Stop, obstacle in front Forward Forward Forward Forward Forward Forward Forward Forward 12.5 Stop, obstacle in front Forward Forward Forward Forward Forward Forward 12.1 Stop, obstacle in front Forward Forward Forward Forward Forward Forward Forward 12.5 Stop, obstacle in front Forward Forward Forward Forward Forward Forward 12.7 Stop, obstacle in front Forward Forward Forward Forward Forward Forward Forward Forward 12.5 Stop, obstacle in front Forward Forward Forward Forward Forward Forward Forward 12.4 Stop, obstacle in front Forward Forward Forward Forward Forward Forward

after detecting any obstacle car keeps moving forward and does not stop but showing "stop, obstacle in front" but car doesn't stop

apoorvyadav1111 commented 5 years ago

@Devanshice020 i have the same issue. have you found any solution. please help.

hamuchiwa commented 5 years ago

@apoorvyadav1111 @Devanshice020 #174