Package me.autobot.code.mechanisms
Class LIDAR
java.lang.Object
me.autobot.lib.systems.mechanisms.Mechanism
me.autobot.code.mechanisms.LIDAR
LIDAR Mechanism that can construct a terrain map from LIDAR data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
LIDAR Point structure.class
The serial connection for the lidar sensor. -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
Initializes the LIDAR mechanism.protected void
onLidarData
(LIDAR.Point[] points) Called when the LIDAR sensor has new data.protected void
stop()
Stops the mechanism.protected void
update()
Updates the LIDAR mechanism.Methods inherited from class me.autobot.lib.systems.mechanisms.Mechanism
disable, enable, init_all, isDisabled, stop_all, update_all
-
Constructor Details
-
LIDAR
public LIDAR()
-
-
Method Details
-
init
public void init()Initializes the LIDAR mechanism. -
update
protected void update()Updates the LIDAR mechanism. -
stop
protected void stop()Description copied from class:Mechanism
Stops the mechanism. -
onLidarData
Called when the LIDAR sensor has new data.- Parameters:
points
- The points from the LIDAR sensor.
-