Class SwervePointPathPlanning
java.lang.Object
xbot.common.subsystems.oracle.SwervePointPathPlanning
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.wpilib.tunable.TunableDouble -
Constructor Summary
ConstructorsConstructorDescriptionSwervePointPathPlanning(ObstacleMap obstacleMap, GameField gameField, XSwerveDriveElectricalContract electrical_contract, TunableFactory tunableFactory) -
Method Summary
Modifier and TypeMethodDescriptiongenerateSwervePoints(org.wpilib.math.geometry.Pose2d startingPose, org.wpilib.math.geometry.Pose2d endingPose, boolean allowToughTerrain) Generates a list of swerve points from Point A -> B while avoiding any obstacles in the map.org.wpilib.units.measure.Distance
-
Field Details
-
additionalClearanceOfObstaclesMeters
public final org.wpilib.tunable.TunableDouble additionalClearanceOfObstaclesMeters
-
-
Constructor Details
-
SwervePointPathPlanning
@Inject public SwervePointPathPlanning(ObstacleMap obstacleMap, GameField gameField, XSwerveDriveElectricalContract electrical_contract, TunableFactory tunableFactory)
-
-
Method Details
-
getAdditionalClearance
public org.wpilib.units.measure.Distance getAdditionalClearance() -
generateSwervePoints
public List<XbotSwervePoint> generateSwervePoints(org.wpilib.math.geometry.Pose2d startingPose, org.wpilib.math.geometry.Pose2d endingPose, boolean allowToughTerrain) Generates a list of swerve points from Point A -> B while avoiding any obstacles in the map.- Parameters:
startingPose- you are atendingPose- you want to go to- Returns:
- a list of swerve points to destination
-