Twist2d

class wpimath.geometry.Twist2d(dx: meters = 0, dy: meters = 0, dtheta: radians = 0)

Bases: pybind11_object

A change in distance along a 2D arc since the last pose update. We can use ideas from differential calculus to create new Pose2ds from a Twist2d and vice versa.

A Twist can be used to represent a difference between two poses.

property dtheta

Angular “dtheta” component (radians)

property dtheta_degrees
property dx

Linear “dx” component

property dx_feet
property dy

Linear “dy” component

property dy_feet
static fromFeet(dx: feet = 0, dy: feet = 0, dtheta: radians = 0) wpimath.geometry._geometry.Twist2d