Class PathPlannerManager
java.lang.Object
frc.alotobots.library.subsystems.swervedrive.util.PathPlannerManager
Manages PathPlanner integration for autonomous path following and path finding. Abstracts path
planning functionality from the SwerveDriveSubsystem.
-
Constructor Summary
ConstructorDescriptionPathPlannerManager
(SwerveDriveSubsystem driveSubsystem) Creates a new PathPlannerManager. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets maximum angular speed capability.double
Gets maximum linear speed capability.getPathFinderCommand
(Pose2d target, edu.wpi.first.units.measure.LinearVelocity velocity) Creates a pathfinding command to the specified pose.
-
Constructor Details
-
PathPlannerManager
Creates a new PathPlannerManager.- Parameters:
driveSubsystem
- The swerve drive subsystem to control
-
-
Method Details
-
getPathFinderCommand
public Command getPathFinderCommand(Pose2d target, edu.wpi.first.units.measure.LinearVelocity velocity) Creates a pathfinding command to the specified pose.- Parameters:
target
- Target posevelocity
- Target velocity- Returns:
- Pathfinding command
-
getMaxLinearSpeedMetersPerSec
public double getMaxLinearSpeedMetersPerSec()Gets maximum linear speed capability.- Returns:
- Maximum speed in meters per second
-
getMaxAngularSpeedRadPerSec
public double getMaxAngularSpeedRadPerSec()Gets maximum angular speed capability.- Returns:
- Maximum angular speed in radians per second
-