Pose
This is the Pose class. It defines poses in 2D space, like the Pose2D class in Road Runner except in the Pedro Pathing code so I don't have to import the Road Runner library. A Pose consists of two coordinates defining a position and a third value for the heading, so basically just defining any position and orientation the robot can be at, unless your robot can fly for whatever reason.
Author
Anyi Lin - 10158 Scott's Bots
Constructors
Link copied to clipboard
This creates a new Pose from a x, y, and heading inputs.
This creates a new Pose from a x, y, and heading inputs in the Pedro Pathing coordinate system or the FTC Standard coordinate system.
This creates a new Pose from x and y inputs.
This creates a new Pose from x and y inputs.
This creates a new Pose with no inputs and 0 for all values.
Properties
Functions
Link copied to clipboard
This is a method that converts the Pose to FTC Standard coordinate system from Pedro Coordinate system.
Link copied to clipboard
This is a method that converts the Pose to Pedro coordinates from the FTC Standard coordinate system.
Link copied to clipboard
This returns the heading value.
Link copied to clipboard
This returns a new Vector with magnitude 1 pointing in the direction of the heading.
Link copied to clipboard
This checks if the input Pose is within 0.0001 in all values to this Pose.
This returns if a Pose is within a specified accuracy of this Pose in terms of x position, y position, and heading.
Link copied to clipboard
This divides all the values of this Pose by a scalar.
Link copied to clipboard
This multiplies all the values of this Pose by a scalar.
Link copied to clipboard
This sets the Pose to be in Pedro coordinates or FTC Standard coordinates.
Link copied to clipboard
This sets the heading value.