ouster-ros
ouster-ros copied to clipboard
Handle cases of the lidar sensor becoming unpowered during operation
Related Issues & PRs
- https://github.com/ouster-lidar/ouster-ros/issues/55
Summary of Changes
- Introduces a new launch argument
retry_configuration
(defaultfalse
) which, whentrue
, will continue to attempt to configure the lidar sensor if the sensor is uncontactable on initialisation instead of the current behaviour of the code crashing. Additionally, if the sensor becomes uncontactable during operation, this branch periodically attempts to re-establish a connection to the sensor using the configuration provided on initialisation.
Validation
- Tested with an OS0 lidar sensor for the cases of:
- A powered sensor on code launch
- An unpowered sensor on code launch
- A powered sensor on code launch, then made unpowered, then made powered again
@tombrodie thanks for your contribution, I will try to take a look at your PR towards the end of the last of the month.
included/resolved by #362