LidarDriver
Extends:
src/drivers/motion/MotionDriverSimulator.js~EventEmitter → LidarDriver
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: Number, distance: Number) Process a measurement and try to make an obstacle approximation. |
|
private |
_onDataReceived(data: Buffer) Process data from lidar |
Public Methods
Private Methods
private _addPointToPolyGenerator(angle: Number, distance: Number) source
Process a measurement and try to make an obstacle approximation. It uses bounding box algorithm to make an approximation of the obstacle
private _onDataReceived(data: Buffer) source
Process data from lidar
Params:
Name | Type | Attribute | Description |
data | Buffer | Buffer from lidar |