class RPLidarA1Driver2 extends java.lang.Object implements RPLidarProvider
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicBoolean |
closingStatus |
private int |
counter |
private java.util.List<ScanDistance> |
distancesTemp |
private RpLidarHighLevelDriver |
driver |
private boolean |
flag |
private boolean |
initSuccess |
private java.util.List<RPLidarProviderListener> |
listenerList |
private Scan |
scan |
private java.lang.String |
USBPort |
SCAN_DEGREES
Constructor and Description |
---|
RPLidarA1Driver2(java.lang.String USBPort) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(RPLidarProviderListener listener) |
void |
close() |
void |
init() |
void |
removeListener(RPLidarProviderListener listener) |
Scan |
scan() |
private void |
setPortProperty() |
private boolean initSuccess
private java.util.concurrent.atomic.AtomicBoolean closingStatus
private RpLidarHighLevelDriver 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
private void setPortProperty()
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