MaxVelocityConstraint

class wpimath.MaxVelocityConstraint(maxVelocity: wpimath.units.meters_per_second)

Bases: TrajectoryConstraint

Represents a constraint that enforces a max velocity. This can be composed with the EllipticalRegionConstraint or RectangularRegionConstraint to enforce a max velocity within a region.

Constructs a new MaxVelocityConstraint.

Parameters:

maxVelocity – The max velocity.

static fromFps(maxVelocity: wpimath.units.feet_per_second) wpimath._wpimath.MaxVelocityConstraint
maxVelocity(pose: wpimath._wpimath.Pose2d, curvature: wpimath.units.radians_per_meter, velocity: wpimath.units.meters_per_second) wpimath.units.meters_per_second
minMaxAcceleration(pose: wpimath._wpimath.Pose2d, curvature: wpimath.units.radians_per_meter, velocity: wpimath.units.meters_per_second) wpimath._wpimath.TrajectoryConstraint.MinMax