Class LidarIOSim

java.lang.Object
com.marslib.simulation.LidarIOSim

public class LidarIOSim extends Object
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 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.