Pathplanner 2024 obtaining initial pose of an auto

Our team is using pathplanner and we need to obtain the initial pose of the following auto shown below. Since we are using swerve for autonomous, when the robot starts up, field relative will be all messed up starting facing the wall rather than facing the field. How do you obtain the initial pose of the auto shown.

Our code for grabbing the path chosen is shown below.

    public Command getAutonomousCommand() {
        return autoChooser.getSelected();
    }

How would we get the initial pose using the code shown above or through another mechanism within the robot code?

Screenshot 2024-02-28 at 12.13.41 PM

https://pathplanner.dev/gui-editing-paths-and-autos.html#autos

If you check the box it will do it for you…

Best thing to do IMHO is to watch it in the simulator.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.