Package xbot.common.subsystems.oracle
Class SwervePointPathPlanning
java.lang.Object
xbot.common.subsystems.oracle.SwervePointPathPlanning
-
Constructor Summary
ConstructorsConstructorDescriptionSwervePointPathPlanning(ObstacleMap obstacleMap, GameField gameField, XSwerveDriveElectricalContract electrical_contract) -
Method Summary
Modifier and TypeMethodDescriptiongenerateSwervePoints(Pose2d startingPose, Pose2d endingPose, boolean allowToughTerrain) Generates a list of swerve points from Point A -> B while avoiding any obstacles in the map.
-
Constructor Details
-
SwervePointPathPlanning
@Inject public SwervePointPathPlanning(ObstacleMap obstacleMap, GameField gameField, XSwerveDriveElectricalContract electrical_contract)
-
-
Method Details
-
generateSwervePoints
public List<XbotSwervePoint> generateSwervePoints(Pose2d startingPose, 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
-