Pose2d

@Serializable()
public final class Pose2d

Class for representing 2D robot poses (x, y, and heading) and their derivatives.

Constructors

Link copied to clipboard
public Pose2d Pose2d(Vector2d pos, Angle heading)
public Pose2d Pose2d(Double x, Double y, Angle heading)

Properties

Link copied to clipboard
public final Angle heading
Link copied to clipboard
public final Double x
Link copied to clipboard
public final Double y

Functions

Link copied to clipboard
public final Pose2d div(Double scalar)

Divides this pose by a scalar.

Link copied to clipboard
public final Boolean epsilonEquals(Pose2d other)

Returns whether two poses are approximately equal (within EPSILON).

Link copied to clipboard
public final Boolean epsilonEqualsHeading(Pose2d other)

Returns whether two poses are approximately equal (within EPSILON).

Link copied to clipboard
public final Vector2d headingVec()

Returns the vector representation of this pose's heading.

Link copied to clipboard
public final Pose2d minus(Pose2d other)

Subtracts two poses.

Link copied to clipboard
public final Pose2d plus(Pose2d other)

Adds two poses.

Link copied to clipboard
public final Pose2d times(Double scalar)

Multiplies this pose by a scalar.

Link copied to clipboard
public String toString()
Link copied to clipboard
public final Pose2d unaryMinus()

Returns the negative of this pose.

Link copied to clipboard
public final Vector2d vec()

Returns this pose as a vector (i.e., without heading).