hamuchiwa / AutoRCCar

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

ERROR OF BROKEN PIPE WHILE TESTING ULTRASONIC SENSOR_CLIENT.PY #178

Closed Devanshice020 closed 5 years ago

Devanshice020 commented 5 years ago

12 123 i am facing this error of broken pipe while testing the client and server side of ultrasonic sensor.. it counts upto around 20 measurements and perfectly streams to the server side and then there is this error in the client side . please can you look into it @hamuchiwa , it is very urgent .

hamuchiwa commented 5 years ago

@Devanshice020 Because server only runs for 10 second, so you see total 20 values printed (1/0.5*10=20). When server exits, you get a broken pipe error on the client side.

Devanshice020 commented 5 years ago

so @hamuchiwa how do i resolve my problem sir?..i want to get measurements as long as i want as in the final testing , the car has to detect the obstacle till i manually shut it off? how do i extend the server time to infinite or some thing? pls help sir @hamuchiwa

hamuchiwa commented 5 years ago

@Devanshice020 Just remove line 32, 32 from ultrasonic_server_test.py.