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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand
     
    us.hebi.quickbuf.Descriptors.Descriptor
     
    Class<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>
     
    boolean
     
    void
    pack(gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand msg, gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand value)
     
    gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand
    unpack(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, wait

    Methods inherited from interface edu.wpi.first.util.protobuf.Protobuf

    clone, forEachDescriptor, getTypeString, isCloneable, unpackInto
  • Constructor Details

    • CommandProto

      public CommandProto()
  • Method Details

    • getTypeClass

      public Class<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand> getTypeClass()
      Specified by:
      getTypeClass in interface edu.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:
      getDescriptor in interface edu.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:
      createMessage in interface edu.wpi.first.util.protobuf.Protobuf<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand,gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>
    • unpack

      public gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand unpack(gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand msg)
      Specified by:
      unpack in interface edu.wpi.first.util.protobuf.Protobuf<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand,gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>
    • pack

      public void pack(gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand msg, gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand value)
      Specified by:
      pack in interface edu.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:
      isImmutable in interface edu.wpi.first.util.protobuf.Protobuf<gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand,gg.questnav.questnav.protos.generated.Commands.ProtobufQuestNavCommand>