ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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.