space-concordia-robotics / robotics-rover

This is the actual code running on the rover.
1 stars 0 forks source link

Error handling #40

Closed msnidal closed 9 years ago

msnidal commented 9 years ago

The rover server is now able to safely start even if the arduino fails to connect. This is done via a system where the rover tries to start each component (so far only the webcam stream and the arduino) separately, and if any exceptions are thrown during initialization, the server is simply started without that component's associated hooks. The hooks that the server starts with are indicated in the server logs, but this could maybe be extended to be returned to the client in the future.

Note: as far as the port connection issue goes, I tested with the arduino and it seems to be successfully closing the port upon server shutdown now, possibly because of a prior change to UManager (whose deconstructor has code to close the port.)

msnidal commented 9 years ago

Closes #29