hamuchiwa / AutoRCCar

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

rc_driver_nn_only.py runs fine but problem with rc_driver.py #203

Closed tc2n closed 5 years ago

tc2n commented 5 years ago

My rc_driver_nn_only.py file runs fine, but when I try to run rc_driver.py and run stream_server.py on the client I get broken pipe error on the client side and server command just terminates without giving any error. This error is generated only when I start stream_server.py on the client side.

codeskul commented 5 years ago

I face same issue

codeskul commented 5 years ago

Only ultrasonic_client.py runs when I start stream_client.py it show me error

codeskul commented 5 years ago

15564477916015266531347955756738

codeskul commented 5 years ago

15564480655361787959251118283671

hamuchiwa commented 5 years ago

@tc2n @codeskul See if this is what you encountered on the server side: #176, #185

codeskul commented 5 years ago

@hamuchiwa no sir it not work

hamuchiwa commented 5 years ago

@codeskul What's the error on the server side?

codeskul commented 5 years ago

@hamuchiwa When I start server side code rc_driver.py it don't show any error, in raspberry pi i start ultrasonic_client.py it sends sensor data well, as I start stream_client.py on raspberry pi it stop and show broken pip error on raspberry pi as shown above and at server side it shows system exit as shown above

codeskul commented 5 years ago

It stop server side execution when i start raspberry side stream_client.py

error

hamuchiwa commented 5 years ago

@codeskul Have you tried running stream_client first or on linux? This project was only tested on Linux and Mac, it could the way of handling threads is different on windows.

codeskul commented 5 years ago

@hamuchiwa ok i will try it on Linux and reply to you

tc2n commented 5 years ago

@hamuchiwa I face the same problem on Linux.

tc2n commented 5 years ago

I tried to remove the 'stop sign' detection part from the rc_driver.py file, then I was able to run stream_server.py file too, but still when I try to run ultrasonic_stream file I got Broken Pipe error with no error on Server Side (I am unable to run both stream_server.py and ultrasonic_stream.py simultaneously).

hamuchiwa commented 5 years ago

@tc2n @codeskul My mistake, forgot to put self before variables in last update. rc_driver.py has been updated and should be working now.

ShwetaLalwani commented 5 years ago

@tc2n Hi, is your car moving in the correct directions after running rc_driver_nn_only.py?

tc2n commented 5 years ago

@ShwetaLalwani When I run model_training on .npz file, sometimes it works fine. But sometimes when I again train the model on the same .npz file my car always moves in the same direction(Always right or Always forward).