Class ObstacleMap
java.lang.Object
xbot.common.subsystems.pose.ObstacleMap
-
Constructor Summary
ConstructorsConstructorDescriptionObstacleMap(List<IFieldObstacle> fieldObstacles, XSwerveDriveElectricalContract electricalContract) -
Method Summary
Modifier and TypeMethodDescriptionclosestObstacle(org.wpilib.math.geometry.Pose2d pose, boolean allowToughTerrain) booleandoesRobotPathIntersect(org.wpilib.math.geometry.Translation2d start, org.wpilib.math.geometry.Translation2d end, boolean allowToughTerrain)
-
Constructor Details
-
ObstacleMap
public ObstacleMap(List<IFieldObstacle> fieldObstacles, XSwerveDriveElectricalContract electricalContract)
-
-
Method Details
-
closestObstacle
public Optional<IFieldObstacle> closestObstacle(org.wpilib.math.geometry.Pose2d pose, boolean allowToughTerrain) -
doesRobotPathIntersect
public boolean doesRobotPathIntersect(org.wpilib.math.geometry.Translation2d start, org.wpilib.math.geometry.Translation2d end, boolean allowToughTerrain)
-