class RPLidarA1Driver extends java.lang.Object implements RPLidarProvider, RpLidarListener
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicBoolean |
closingStatus |
private int |
counter |
private java.util.List<ScanDistance> |
distancesTemp |
private RpLidarLowLevelDriver |
driver |
private boolean |
flag |
private java.util.List<RPLidarProviderListener> |
listenerList |
private Scan |
scan |
private java.lang.String |
USBPort |
SCAN_DEGREES
Constructor and Description |
---|
RPLidarA1Driver(java.lang.String USBPort) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(RPLidarProviderListener listener) |
void |
close() |
boolean |
containAngle(java.util.List<ScanDistance> list,
int angle) |
void |
handleDeviceHealth(RpLidarHeath health) |
void |
handleDeviceInfo(RpLidarDeviceInfo info) |
void |
handleMeasurement(RpLidarMeasurement measurement) |
void |
init() |
void |
removeListener(RPLidarProviderListener listener) |
Scan |
scan() |
private java.util.concurrent.atomic.AtomicBoolean closingStatus
private RpLidarLowLevelDriver driver
private final java.lang.String USBPort
private int counter
private boolean flag
private java.util.List<ScanDistance> distancesTemp
private Scan scan
private final java.util.List<RPLidarProviderListener> listenerList
public void init() throws RPLidarA1ServiceException
init
in interface RPLidarProvider
RPLidarA1ServiceException
public Scan scan() throws RPLidarA1ServiceException
scan
in interface RPLidarProvider
RPLidarA1ServiceException
public void close() throws RPLidarA1ServiceException
close
in interface RPLidarProvider
RPLidarA1ServiceException
public void addListener(RPLidarProviderListener listener)
addListener
in interface RPLidarProvider
public void removeListener(RPLidarProviderListener listener)
removeListener
in interface RPLidarProvider
public void handleMeasurement(RpLidarMeasurement measurement)
handleMeasurement
in interface RpLidarListener
public boolean containAngle(java.util.List<ScanDistance> list, int angle)
public void handleDeviceHealth(RpLidarHeath health)
handleDeviceHealth
in interface RpLidarListener
public void handleDeviceInfo(RpLidarDeviceInfo info)
handleDeviceInfo
in interface RpLidarListener