Package com.marslib.simulation
Class LidarIOSim
java.lang.Object
com.marslib.simulation.LidarIOSim
Simulates a 360-degree LiDAR or Time-of-Flight sensor array using dyn4j raycasting. Shoots rays
outward from the robot chassis to detect walls and game pieces.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateInputs(edu.wpi.first.math.geometry.Pose2d robotPose) Performs the raycast sweep around the robot and logs the hits as a 3D Point Cloud.
-
Constructor Details
-
LidarIOSim
public LidarIOSim()
-
-
Method Details
-
updateInputs
public void updateInputs(edu.wpi.first.math.geometry.Pose2d robotPose) Performs the raycast sweep around the robot and logs the hits as a 3D Point Cloud.- Parameters:
robotPose- The current field-relative pose of the robot.
-