turtlebot / turtlebot_create

It keeps iRobot Create specific packages
http://www.ros.org/wiki/turtlebot_create
24 stars 40 forks source link

Add check code for sensor state packet #40

Open 7675t opened 6 years ago

7675t commented 6 years ago

The current code check the health of the sensor packet just before it is used. And if it is not valid, it raises exception, but it cause the system reset and lost connection to Roomba (or Create) for seconds. As the result, the robot can be out of control for that duration.

This PR is raise DriverError which the code just ignored the current sensor packet if the sensor information is invalid. I confirmed it works and ease the problem I reported on #39 .