autorope / donkeycar

Open source hardware and software platform to build a small scale self driving car.
http://www.donkeycar.com
MIT License
3.16k stars 1.3k forks source link

Protect CVCAM from returning None image #968

Open Ezward opened 2 years ago

Ezward commented 2 years ago

We want to make sure cameras initialize correctly and do not return None images because that causes hard to understand errors downstream. Instead we want to initialize the camera and check that it is returning valid frames at initialization time.

Note that this was done for the other camera types that reside in parts/camera.py in https://github.com/autorope/donkeycar/pull/967. However the CvCam part is in parts/cv.py and so did not get protected in this way.

Ezward commented 1 year ago

See PR https://github.com/autorope/donkeycar/pull/1111