Class TrajectorySample

java.lang.Object
org.wpilib.math.trajectory.TrajectorySample
All Implemented Interfaces:
ProtobufSerializable, StructSerializable, WPISerializable
Direct Known Subclasses:
HolonomicSample

public class TrajectorySample extends Object implements StructSerializable, ProtobufSerializable
Represents a single sample in a trajectory.
  • Field Details

    • time

      public double time
      The time of the sample relative to the trajectory start, in seconds.
    • struct

      public static final TrajectorySampleStruct struct
      Base struct for serialization.
    • proto

      public static final TrajectorySampleProto proto
      Base proto for serialization.
  • Constructor Details

    • TrajectorySample

      public TrajectorySample(double time)
      Constructs a TrajectorySample.
      Parameters:
      time - The time of the sample relative to the trajectory start, in seconds.
    • TrajectorySample

      public TrajectorySample(Time time)
      Constructs a TrajectorySample.
      Parameters:
      time - The time of the sample relative to the trajectory start.
  • Method Details