Pose2d

constructor(position: Vector2d<DistanceUnit>, heading: Rotation2d)(source)


constructor(position: Vector2d<DistanceUnit>, heading: Double)(source)

Constructs a Pose2d from a position vector and a heading angle.

Parameters

position

the position vector

heading

the heading angle in radians


constructor(x: Distance, y: Distance, heading: Rotation2d)(source)

Constructs a Pose2d from x and y distance measurements and a heading rotation.

Parameters

x

the x-coordinate

y

the y-coordinate

heading

the heading rotation


constructor(x: Distance, y: Distance, heading: Angle)(source)

Constructs a Pose2d from x and y distance measurements and a heading angle.

Parameters

x

the x-coordinate

y

the y-coordinate

heading

the heading angle measurement


constructor(x: Double, y: Double, heading: Rotation2d)(source)

Constructs a Pose2d from x and y coordinates (in inches) and a heading rotation.

Convenience constructor that assumes inch units for position coordinates.

Parameters

x

the x-coordinate in inches

y

the y-coordinate in inches

heading

the heading rotation


constructor(x: Double, y: Double, heading: Double)(source)

Constructs a Pose2d from x and y coordinates (in inches) and a heading angle (in radians).

Convenience constructor that assumes inch units for position and radians for heading.

Parameters

x

the x-coordinate in inches

y

the y-coordinate in inches

heading

the heading angle in radians