Class TelemetryRecordOutput
- Direct Known Subclasses:
Telemetry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static <E extends Enum<E>>
voidRecords a single output field for easy access when viewing the log.static <E extends Enum<E>>
voidRecords a single output field for easy access when viewing the log.static <E extends Enum<E>>
voidRecords a single output field for easy access when viewing the log.static <U extends edu.wpi.first.units.Unit>
voidRecords a single output field for easy access when viewing the log.static <T,MessageType extends us.hebi.quickbuf.ProtoMessage<?>>
voidRecords a single output field for easy access when viewing the log.static <T> voidRecords a single output field for easy access when viewing the log.static <T> voidRecords a single output field for easy access when viewing the log.static <T> voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static voidlog(String key, BooleanSupplier value) Records a single output field for easy access when viewing the log.static voidlog(String key, DoubleSupplier value) Records a single output field for easy access when viewing the log.static voidlog(String key, IntSupplier value) Records a single output field for easy access when viewing the log.static voidlog(String key, LongSupplier value) Records a single output field for easy access when viewing the log.static voidRecords a single output field for easy access when viewing the log.static <R extends Record>
voidRecords a single output field for easy access when viewing the log.static <R extends Record>
voidRecords a single output field for easy access when viewing the log.static <R extends Record>
voidRecords a single output field for easy access when viewing the log.static <T extends edu.wpi.first.util.WPISerializable>
voidRecords a single output field for easy access when viewing the log.static <T extends edu.wpi.first.util.struct.StructSerializable>
voidRecords a single output field for easy access when viewing the log.static <T extends edu.wpi.first.util.struct.StructSerializable>
voidRecords a single output field for easy access when viewing the log.
-
Constructor Details
-
TelemetryRecordOutput
public TelemetryRecordOutput()
-
-
Method Details
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
public static <U extends edu.wpi.first.units.Unit> void log(String key, edu.wpi.first.units.Measure<U> value) Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
This method serializes a single object as a struct. Example usage:
recordOutput("MyPose", Pose2d.struct, new Pose2d())- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method serializes an array of objects as a struct. Example usage:
recordOutput("MyPoses", Pose2d.struct, new Pose2d(), new Pose2d()); recordOutput("MyPoses", Pose2d.struct, new Pose2d[] {new Pose2d(), new Pose2d()});This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
public static <T,MessageType extends us.hebi.quickbuf.ProtoMessage<?>> void log(String key, edu.wpi.first.util.protobuf.Protobuf<T, MessageType> proto, T value) Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method serializes a single object as a protobuf. Protobuf should only be used for objects that do not support struct serialization. Example usage:
recordOutput("MyPose", Pose2d.proto, new Pose2d())This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method serializes a single object as a struct or protobuf automatically. Struct is preferred if both methods are supported.
This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Type Parameters:
T- The type- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
public static <T extends edu.wpi.first.util.struct.StructSerializable> void log(String key, T... value) Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method serializes an array of objects as a struct automatically. Top-level protobuf arrays are not supported.
This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Type Parameters:
T- The type- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
public static <T extends edu.wpi.first.util.struct.StructSerializable> void log(String key, T[][] value) Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method serializes an array of objects as a struct automatically. Top-level protobuf arrays are not supported.
This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Type Parameters:
T- The type- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method serializes a single object as a struct or protobuf automatically. Struct is preferred if both methods are supported.
This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Type Parameters:
R- The type- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method serializes an array of objects as a struct automatically. Top-level protobuf arrays are not supported.
This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Type Parameters:
R- The type- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.This method serializes an array of objects as a struct automatically. Top-level protobuf arrays are not supported.
This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Type Parameters:
R- The type- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-
log
public static void log(String key, org.littletonrobotics.junction.mechanism.LoggedMechanism2d value) Records a single output field for easy access when viewing the log. On the simulator, use this method to record extra data based on the original inputs.The current position of the Mechanism2d is logged once as a set of nested fields. If the position is updated, this method must be called again.
This method is not thread-safe and should only be called from the main thread. See the "Common Issues" page in the documentation for more details.
- Parameters:
key- The name of the field to record. It will be stored under "/RealOutputs" or "/ReplayOutputs"value- The value of the field.
-