MaxVelocityConstraint

class wpimath.trajectory.constraint.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._controls._controls.constraint.MaxVelocityConstraint
maxVelocity(pose: wpimath.geometry._geometry.Pose2d, curvature: wpimath.units.radians_per_meter, velocity: wpimath.units.meters_per_second) wpimath.units.meters_per_second
minMaxAcceleration(pose: wpimath.geometry._geometry.Pose2d, curvature: wpimath.units.radians_per_meter, speed: wpimath.units.meters_per_second) wpimath._controls._controls.constraint.TrajectoryConstraint.MinMax