Class CommandProto
java.lang.Object
gg.questnav.questnav.protos.wpilib.CommandProto
- All Implemented Interfaces:
edu.wpi.first.util.protobuf.Protobuf<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand,gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>
public class CommandProto
extends Object
implements edu.wpi.first.util.protobuf.Protobuf<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand,gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>
WPILib Protobuf serialization adapter for QuestNav command messages.
This class provides the necessary integration between QuestNav's protocol buffer command definitions and WPILib's NetworkTables protobuf system. It handles the serialization and deserialization of command messages sent from robot code to the Quest headset.
This adapter is used internally by the QuestNav class and
typically does not need to be used directly by robot code.
Supported Commands
This adapter handles all QuestNav command types including:
- Pose Reset: Commands to reset the Quest's tracking to a known robot pose
- Future Commands: Extensible for additional command types as needed
Protocol Buffer Integration
The class implements WPILib's Protobuf interface to
provide seamless integration with NetworkTables. This enables:
- Efficient binary serialization over the network
- Type-safe message handling
- Automatic message validation and error handling
- Cross-platform compatibility (Java robot code ↔ C# Quest app)
- Since:
- 2025.1.0
- See Also:
-
QuestNav.setPose(edu.wpi.first.math.geometry.Pose3d)Commands.ProtobufQuestNavCommandProtobuf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommandus.hebi.quickbuf.Descriptors.DescriptorClass<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>booleanvoidpack(gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand msg, gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand value) gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommandunpack(gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand msg) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.util.protobuf.Protobuf
clone, forEachDescriptor, getTypeString, isCloneable, unpackInto
-
Constructor Details
-
CommandProto
public CommandProto()
-
-
Method Details
-
getTypeClass
- Specified by:
getTypeClassin interfaceedu.wpi.first.util.protobuf.Protobuf<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand,gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>
-
getDescriptor
public us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Specified by:
getDescriptorin interfaceedu.wpi.first.util.protobuf.Protobuf<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand,gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>
-
createMessage
public gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand createMessage()- Specified by:
createMessagein interfaceedu.wpi.first.util.protobuf.Protobuf<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand,gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>
-
isImmutable
public boolean isImmutable()- Specified by:
isImmutablein interfaceedu.wpi.first.util.protobuf.Protobuf<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand,gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>
-