ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2011-12-05 13:37:17 -0500

joq gravatar image

I use a similar approach to @DimitriProsser, while gradually evolving my drivers to publish driver_base style states. When a device open fails, the driver publishes a CLOSED state, but continues to (slowly) poll the device in case it starts working. When successful, the state changes to OPENED or RUNNING, as appropriate. That allows other nodes to provide useful fall-back behavior in some situations.