LidarDriver
Extends:
Provides an abstraction layer on top of lidar's firmware and algorithms to determine robot's position and obstacles
Method Summary
Public Methods | ||
public |
disable() Disable lidar driver |
|
public |
enable() Enable lidar driver |
Private Methods | ||
private |
_addPointToPolyGenerator(angle: *, distance: *) Process a measurement and try to make an obstacle approximation. |
|
private |
_onDataReceived(data: *) Process data from lidar |
Public Methods
Private Methods
private _addPointToPolyGenerator(angle: *, distance: *) source
Process a measurement and try to make an obstacle approximation. It uses bounding box algorithm to make an approximation of the obstacle
Params:
Name | Type | Attribute | Description |
angle | * | {Number} - Angle of the measurement |
|
distance | * | {Number} - Distance to the closest point at given angle |
private _onDataReceived(data: *) source
Process data from lidar
Params:
Name | Type | Attribute | Description |
data | * | {Buffer} - Buffer from lidar |