owl.instruments.MultiLidar¶
- class owl.instruments.MultiLidar(*, serial_number: str = None, device_addresses: int | Iterable[int] | None = None, open_device=True, **kwargs)[source]¶
Bases:
objectOpen a Ramona Optics Multi-Lidar ranging system.
Example
>>> from owl.instruments import MultiLidar >>> lidar = MultiLidar() >>> print(lidar.distance)
- Parameters:
serial_number (str) – Serial_number of microcontroller. If not provided, auto-detection of the microcontroller will be attempted.
device_addresses (int or List[int]) – For devices shipped with Ramona Optics products, this should be left as
None. Device addresses of Lidar units. 8-bit addresses are assumed. One address can be provided as a single integer. Multiple addresses can be provided as a list.open_device (bool) –
If
True, the last operation of the constructor will be to call theopenmethod to ensure the device is ready for reading.Added in version 0.18.11: The
open_deviceparameter.
- property distance: list[float]¶
The distance as read from the sensor in meters.
This returns a list of floating point values corresponding to the reading from each lidar sensor.
- property lidar_count¶
The number of lidar sensors connected to the module.
Added in version 0.18.11.