16template <
size_t NumModules>
24 static std::optional<frc::SwerveDriveKinematics<NumModules>>
Unpack(
42 .modules = modules.Callback(),
Helper class that converts a chassis velocity (dx, dy, and dtheta components) into individual module ...
Definition SwerveDriveKinematics.h:54
pb_callback_t Callback() const
Gets the nanopb callback pointing to this object.
Definition ProtobufCallbacks.h:141
void SetLimits(DecodeLimits limit) noexcept
Set the limits on what happens if more elements exist in the buffer then expected.
Definition ProtobufCallbacks.h:134
A callback method that will pack elements when called.
Definition ProtobufCallbacks.h:486
Class for wrapping a nanopb ostream.
Definition Protobuf.h:119
bool Encode(const typename Protobuf< std::remove_cvref_t< T > >::MessageStruct &msg)
Decodes a protobuf.
Definition Protobuf.h:211
struct _wpi_proto_ProtobufSwerveDriveKinematics wpi_proto_ProtobufSwerveDriveKinematics
Definition kinematics.npb.h:88
static std::optional< frc::SwerveDriveKinematics< NumModules > > Unpack(InputStream &stream)
Definition SwerveDriveKinematicsProto.h:24
static bool Pack(OutputStream &stream, const frc::SwerveDriveKinematics< NumModules > &value)
Definition SwerveDriveKinematicsProto.h:38
Protobuf serialization template.
Definition Protobuf.h:36
A DirectUnpackCallback backed by a wpi::array<T, N>.
Definition ProtobufCallbacks.h:446
wpi::array< T, N > & Array() noexcept
Returns a reference to the backing array.
Definition ProtobufCallbacks.h:474