[wpiutil] Change C++ protobuf to nanopb (#7309)

The Google C++ protobuf implementation has issues with dynamic linkage across DLL boundaries because it uses global variables.  It also has a compile-time dependency because the protoc version must exactly match the libprotobuf version.  Using nanopb with a customized generator fixes both of these issues.

Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
This commit is contained in:
Thad House
2024-11-07 22:42:50 -08:00
committed by GitHub
parent fd2e0c0427
commit 8b8b634f65
166 changed files with 17522 additions and 1571 deletions

View File

@@ -0,0 +1,245 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.9 */
#include "controller.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
#include <span>
#include <string_view>
static const uint8_t file_descriptor[] {
0x0a,0x10,0x63,0x6f,0x6e,0x74,0x72,0x6f,0x6c,0x6c,
0x65,0x72,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x12,0x09,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x22,
0x68,0x0a,0x16,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,
0x66,0x41,0x72,0x6d,0x46,0x65,0x65,0x64,0x66,0x6f,
0x72,0x77,0x61,0x72,0x64,0x12,0x0e,0x0a,0x02,0x6b,
0x73,0x18,0x01,0x20,0x01,0x28,0x01,0x52,0x02,0x6b,
0x73,0x12,0x0e,0x0a,0x02,0x6b,0x67,0x18,0x02,0x20,
0x01,0x28,0x01,0x52,0x02,0x6b,0x67,0x12,0x0e,0x0a,
0x02,0x6b,0x76,0x18,0x03,0x20,0x01,0x28,0x01,0x52,
0x02,0x6b,0x76,0x12,0x0e,0x0a,0x02,0x6b,0x61,0x18,
0x04,0x20,0x01,0x28,0x01,0x52,0x02,0x6b,0x61,0x12,
0x0e,0x0a,0x02,0x64,0x74,0x18,0x05,0x20,0x01,0x28,
0x01,0x52,0x02,0x64,0x74,0x22,0x9e,0x01,0x0a,0x24,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x44,0x69,
0x66,0x66,0x65,0x72,0x65,0x6e,0x74,0x69,0x61,0x6c,
0x44,0x72,0x69,0x76,0x65,0x46,0x65,0x65,0x64,0x66,
0x6f,0x72,0x77,0x61,0x72,0x64,0x12,0x1b,0x0a,0x09,
0x6b,0x76,0x5f,0x6c,0x69,0x6e,0x65,0x61,0x72,0x18,
0x01,0x20,0x01,0x28,0x01,0x52,0x08,0x6b,0x76,0x4c,
0x69,0x6e,0x65,0x61,0x72,0x12,0x1b,0x0a,0x09,0x6b,
0x61,0x5f,0x6c,0x69,0x6e,0x65,0x61,0x72,0x18,0x02,
0x20,0x01,0x28,0x01,0x52,0x08,0x6b,0x61,0x4c,0x69,
0x6e,0x65,0x61,0x72,0x12,0x1d,0x0a,0x0a,0x6b,0x76,
0x5f,0x61,0x6e,0x67,0x75,0x6c,0x61,0x72,0x18,0x03,
0x20,0x01,0x28,0x01,0x52,0x09,0x6b,0x76,0x41,0x6e,
0x67,0x75,0x6c,0x61,0x72,0x12,0x1d,0x0a,0x0a,0x6b,
0x61,0x5f,0x61,0x6e,0x67,0x75,0x6c,0x61,0x72,0x18,
0x04,0x20,0x01,0x28,0x01,0x52,0x09,0x6b,0x61,0x41,
0x6e,0x67,0x75,0x6c,0x61,0x72,0x22,0x6d,0x0a,0x1b,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x45,0x6c,
0x65,0x76,0x61,0x74,0x6f,0x72,0x46,0x65,0x65,0x64,
0x66,0x6f,0x72,0x77,0x61,0x72,0x64,0x12,0x0e,0x0a,
0x02,0x6b,0x73,0x18,0x01,0x20,0x01,0x28,0x01,0x52,
0x02,0x6b,0x73,0x12,0x0e,0x0a,0x02,0x6b,0x67,0x18,
0x02,0x20,0x01,0x28,0x01,0x52,0x02,0x6b,0x67,0x12,
0x0e,0x0a,0x02,0x6b,0x76,0x18,0x03,0x20,0x01,0x28,
0x01,0x52,0x02,0x6b,0x76,0x12,0x0e,0x0a,0x02,0x6b,
0x61,0x18,0x04,0x20,0x01,0x28,0x01,0x52,0x02,0x6b,
0x61,0x12,0x0e,0x0a,0x02,0x64,0x74,0x18,0x05,0x20,
0x01,0x28,0x01,0x52,0x02,0x64,0x74,0x22,0x60,0x0a,
0x1e,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x53,
0x69,0x6d,0x70,0x6c,0x65,0x4d,0x6f,0x74,0x6f,0x72,
0x46,0x65,0x65,0x64,0x66,0x6f,0x72,0x77,0x61,0x72,
0x64,0x12,0x0e,0x0a,0x02,0x6b,0x73,0x18,0x01,0x20,
0x01,0x28,0x01,0x52,0x02,0x6b,0x73,0x12,0x0e,0x0a,
0x02,0x6b,0x76,0x18,0x02,0x20,0x01,0x28,0x01,0x52,
0x02,0x6b,0x76,0x12,0x0e,0x0a,0x02,0x6b,0x61,0x18,
0x03,0x20,0x01,0x28,0x01,0x52,0x02,0x6b,0x61,0x12,
0x0e,0x0a,0x02,0x64,0x74,0x18,0x04,0x20,0x01,0x28,
0x01,0x52,0x02,0x64,0x74,0x22,0x52,0x0a,0x26,0x50,
0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x44,0x69,0x66,
0x66,0x65,0x72,0x65,0x6e,0x74,0x69,0x61,0x6c,0x44,
0x72,0x69,0x76,0x65,0x57,0x68,0x65,0x65,0x6c,0x56,
0x6f,0x6c,0x74,0x61,0x67,0x65,0x73,0x12,0x12,0x0a,
0x04,0x6c,0x65,0x66,0x74,0x18,0x01,0x20,0x01,0x28,
0x01,0x52,0x04,0x6c,0x65,0x66,0x74,0x12,0x14,0x0a,
0x05,0x72,0x69,0x67,0x68,0x74,0x18,0x02,0x20,0x01,
0x28,0x01,0x52,0x05,0x72,0x69,0x67,0x68,0x74,0x42,
0x1a,0x0a,0x18,0x65,0x64,0x75,0x2e,0x77,0x70,0x69,
0x2e,0x66,0x69,0x72,0x73,0x74,0x2e,0x6d,0x61,0x74,
0x68,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x4a,0xf5,0x09,
0x0a,0x06,0x12,0x04,0x00,0x00,0x27,0x01,0x0a,0x08,
0x0a,0x01,0x0c,0x12,0x03,0x00,0x00,0x12,0x0a,0x08,
0x0a,0x01,0x02,0x12,0x03,0x02,0x00,0x12,0x0a,0x08,
0x0a,0x01,0x08,0x12,0x03,0x04,0x00,0x31,0x0a,0x09,
0x0a,0x02,0x08,0x01,0x12,0x03,0x04,0x00,0x31,0x0a,
0x0a,0x0a,0x02,0x04,0x00,0x12,0x04,0x06,0x00,0x0c,
0x01,0x0a,0x0a,0x0a,0x03,0x04,0x00,0x01,0x12,0x03,
0x06,0x08,0x1e,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,
0x00,0x12,0x03,0x07,0x02,0x10,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x00,0x05,0x12,0x03,0x07,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,0x01,0x12,
0x03,0x07,0x09,0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x00,0x03,0x12,0x03,0x07,0x0e,0x0f,0x0a,0x0b,
0x0a,0x04,0x04,0x00,0x02,0x01,0x12,0x03,0x08,0x02,
0x10,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x05,
0x12,0x03,0x08,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x01,0x01,0x12,0x03,0x08,0x09,0x0b,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x03,0x12,0x03,
0x08,0x0e,0x0f,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,
0x02,0x12,0x03,0x09,0x02,0x10,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x02,0x05,0x12,0x03,0x09,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,0x01,0x12,
0x03,0x09,0x09,0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x02,0x03,0x12,0x03,0x09,0x0e,0x0f,0x0a,0x0b,
0x0a,0x04,0x04,0x00,0x02,0x03,0x12,0x03,0x0a,0x02,
0x10,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x03,0x05,
0x12,0x03,0x0a,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x03,0x01,0x12,0x03,0x0a,0x09,0x0b,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x03,0x03,0x12,0x03,
0x0a,0x0e,0x0f,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,
0x04,0x12,0x03,0x0b,0x02,0x10,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x04,0x05,0x12,0x03,0x0b,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x04,0x01,0x12,
0x03,0x0b,0x09,0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x04,0x03,0x12,0x03,0x0b,0x0e,0x0f,0x0a,0x0a,
0x0a,0x02,0x04,0x01,0x12,0x04,0x0e,0x00,0x13,0x01,
0x0a,0x0a,0x0a,0x03,0x04,0x01,0x01,0x12,0x03,0x0e,
0x08,0x2c,0x0a,0x0b,0x0a,0x04,0x04,0x01,0x02,0x00,
0x12,0x03,0x0f,0x02,0x17,0x0a,0x0c,0x0a,0x05,0x04,
0x01,0x02,0x00,0x05,0x12,0x03,0x0f,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x01,0x02,0x00,0x01,0x12,0x03,
0x0f,0x09,0x12,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,
0x00,0x03,0x12,0x03,0x0f,0x15,0x16,0x0a,0x0b,0x0a,
0x04,0x04,0x01,0x02,0x01,0x12,0x03,0x10,0x02,0x17,
0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x01,0x05,0x12,
0x03,0x10,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x01,
0x02,0x01,0x01,0x12,0x03,0x10,0x09,0x12,0x0a,0x0c,
0x0a,0x05,0x04,0x01,0x02,0x01,0x03,0x12,0x03,0x10,
0x15,0x16,0x0a,0x0b,0x0a,0x04,0x04,0x01,0x02,0x02,
0x12,0x03,0x11,0x02,0x18,0x0a,0x0c,0x0a,0x05,0x04,
0x01,0x02,0x02,0x05,0x12,0x03,0x11,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x01,0x02,0x02,0x01,0x12,0x03,
0x11,0x09,0x13,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,
0x02,0x03,0x12,0x03,0x11,0x16,0x17,0x0a,0x0b,0x0a,
0x04,0x04,0x01,0x02,0x03,0x12,0x03,0x12,0x02,0x18,
0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x03,0x05,0x12,
0x03,0x12,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x01,
0x02,0x03,0x01,0x12,0x03,0x12,0x09,0x13,0x0a,0x0c,
0x0a,0x05,0x04,0x01,0x02,0x03,0x03,0x12,0x03,0x12,
0x16,0x17,0x0a,0x0a,0x0a,0x02,0x04,0x02,0x12,0x04,
0x15,0x00,0x1b,0x01,0x0a,0x0a,0x0a,0x03,0x04,0x02,
0x01,0x12,0x03,0x15,0x08,0x23,0x0a,0x0b,0x0a,0x04,
0x04,0x02,0x02,0x00,0x12,0x03,0x16,0x02,0x10,0x0a,
0x0c,0x0a,0x05,0x04,0x02,0x02,0x00,0x05,0x12,0x03,
0x16,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,
0x00,0x01,0x12,0x03,0x16,0x09,0x0b,0x0a,0x0c,0x0a,
0x05,0x04,0x02,0x02,0x00,0x03,0x12,0x03,0x16,0x0e,
0x0f,0x0a,0x0b,0x0a,0x04,0x04,0x02,0x02,0x01,0x12,
0x03,0x17,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,0x02,
0x02,0x01,0x05,0x12,0x03,0x17,0x02,0x08,0x0a,0x0c,
0x0a,0x05,0x04,0x02,0x02,0x01,0x01,0x12,0x03,0x17,
0x09,0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,0x01,
0x03,0x12,0x03,0x17,0x0e,0x0f,0x0a,0x0b,0x0a,0x04,
0x04,0x02,0x02,0x02,0x12,0x03,0x18,0x02,0x10,0x0a,
0x0c,0x0a,0x05,0x04,0x02,0x02,0x02,0x05,0x12,0x03,
0x18,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,
0x02,0x01,0x12,0x03,0x18,0x09,0x0b,0x0a,0x0c,0x0a,
0x05,0x04,0x02,0x02,0x02,0x03,0x12,0x03,0x18,0x0e,
0x0f,0x0a,0x0b,0x0a,0x04,0x04,0x02,0x02,0x03,0x12,
0x03,0x19,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,0x02,
0x02,0x03,0x05,0x12,0x03,0x19,0x02,0x08,0x0a,0x0c,
0x0a,0x05,0x04,0x02,0x02,0x03,0x01,0x12,0x03,0x19,
0x09,0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,0x03,
0x03,0x12,0x03,0x19,0x0e,0x0f,0x0a,0x0b,0x0a,0x04,
0x04,0x02,0x02,0x04,0x12,0x03,0x1a,0x02,0x10,0x0a,
0x0c,0x0a,0x05,0x04,0x02,0x02,0x04,0x05,0x12,0x03,
0x1a,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,
0x04,0x01,0x12,0x03,0x1a,0x09,0x0b,0x0a,0x0c,0x0a,
0x05,0x04,0x02,0x02,0x04,0x03,0x12,0x03,0x1a,0x0e,
0x0f,0x0a,0x0a,0x0a,0x02,0x04,0x03,0x12,0x04,0x1d,
0x00,0x22,0x01,0x0a,0x0a,0x0a,0x03,0x04,0x03,0x01,
0x12,0x03,0x1d,0x08,0x26,0x0a,0x0b,0x0a,0x04,0x04,
0x03,0x02,0x00,0x12,0x03,0x1e,0x02,0x10,0x0a,0x0c,
0x0a,0x05,0x04,0x03,0x02,0x00,0x05,0x12,0x03,0x1e,
0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x00,
0x01,0x12,0x03,0x1e,0x09,0x0b,0x0a,0x0c,0x0a,0x05,
0x04,0x03,0x02,0x00,0x03,0x12,0x03,0x1e,0x0e,0x0f,
0x0a,0x0b,0x0a,0x04,0x04,0x03,0x02,0x01,0x12,0x03,
0x1f,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,
0x01,0x05,0x12,0x03,0x1f,0x02,0x08,0x0a,0x0c,0x0a,
0x05,0x04,0x03,0x02,0x01,0x01,0x12,0x03,0x1f,0x09,
0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x01,0x03,
0x12,0x03,0x1f,0x0e,0x0f,0x0a,0x0b,0x0a,0x04,0x04,
0x03,0x02,0x02,0x12,0x03,0x20,0x02,0x10,0x0a,0x0c,
0x0a,0x05,0x04,0x03,0x02,0x02,0x05,0x12,0x03,0x20,
0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x02,
0x01,0x12,0x03,0x20,0x09,0x0b,0x0a,0x0c,0x0a,0x05,
0x04,0x03,0x02,0x02,0x03,0x12,0x03,0x20,0x0e,0x0f,
0x0a,0x0b,0x0a,0x04,0x04,0x03,0x02,0x03,0x12,0x03,
0x21,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,
0x03,0x05,0x12,0x03,0x21,0x02,0x08,0x0a,0x0c,0x0a,
0x05,0x04,0x03,0x02,0x03,0x01,0x12,0x03,0x21,0x09,
0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x03,0x03,
0x12,0x03,0x21,0x0e,0x0f,0x0a,0x0a,0x0a,0x02,0x04,
0x04,0x12,0x04,0x24,0x00,0x27,0x01,0x0a,0x0a,0x0a,
0x03,0x04,0x04,0x01,0x12,0x03,0x24,0x08,0x2e,0x0a,
0x0b,0x0a,0x04,0x04,0x04,0x02,0x00,0x12,0x03,0x25,
0x02,0x12,0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x00,
0x05,0x12,0x03,0x25,0x02,0x08,0x0a,0x0c,0x0a,0x05,
0x04,0x04,0x02,0x00,0x01,0x12,0x03,0x25,0x09,0x0d,
0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x00,0x03,0x12,
0x03,0x25,0x10,0x11,0x0a,0x0b,0x0a,0x04,0x04,0x04,
0x02,0x01,0x12,0x03,0x26,0x02,0x13,0x0a,0x0c,0x0a,
0x05,0x04,0x04,0x02,0x01,0x05,0x12,0x03,0x26,0x02,
0x08,0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x01,0x01,
0x12,0x03,0x26,0x09,0x0e,0x0a,0x0c,0x0a,0x05,0x04,
0x04,0x02,0x01,0x03,0x12,0x03,0x26,0x11,0x12,0x62,
0x06,0x70,0x72,0x6f,0x74,0x6f,0x33,
};
static const char file_name[] = "controller.proto";
static const char wpi_proto_ProtobufArmFeedforward_name[] = "wpi.proto.ProtobufArmFeedforward";
std::string_view wpi_proto_ProtobufArmFeedforward::msg_name(void) noexcept { return wpi_proto_ProtobufArmFeedforward_name; }
pb_filedesc_t wpi_proto_ProtobufArmFeedforward::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufArmFeedforward, wpi_proto_ProtobufArmFeedforward, AUTO)
static const char wpi_proto_ProtobufDifferentialDriveFeedforward_name[] = "wpi.proto.ProtobufDifferentialDriveFeedforward";
std::string_view wpi_proto_ProtobufDifferentialDriveFeedforward::msg_name(void) noexcept { return wpi_proto_ProtobufDifferentialDriveFeedforward_name; }
pb_filedesc_t wpi_proto_ProtobufDifferentialDriveFeedforward::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufDifferentialDriveFeedforward, wpi_proto_ProtobufDifferentialDriveFeedforward, AUTO)
static const char wpi_proto_ProtobufElevatorFeedforward_name[] = "wpi.proto.ProtobufElevatorFeedforward";
std::string_view wpi_proto_ProtobufElevatorFeedforward::msg_name(void) noexcept { return wpi_proto_ProtobufElevatorFeedforward_name; }
pb_filedesc_t wpi_proto_ProtobufElevatorFeedforward::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufElevatorFeedforward, wpi_proto_ProtobufElevatorFeedforward, AUTO)
static const char wpi_proto_ProtobufSimpleMotorFeedforward_name[] = "wpi.proto.ProtobufSimpleMotorFeedforward";
std::string_view wpi_proto_ProtobufSimpleMotorFeedforward::msg_name(void) noexcept { return wpi_proto_ProtobufSimpleMotorFeedforward_name; }
pb_filedesc_t wpi_proto_ProtobufSimpleMotorFeedforward::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufSimpleMotorFeedforward, wpi_proto_ProtobufSimpleMotorFeedforward, AUTO)
static const char wpi_proto_ProtobufDifferentialDriveWheelVoltages_name[] = "wpi.proto.ProtobufDifferentialDriveWheelVoltages";
std::string_view wpi_proto_ProtobufDifferentialDriveWheelVoltages::msg_name(void) noexcept { return wpi_proto_ProtobufDifferentialDriveWheelVoltages_name; }
pb_filedesc_t wpi_proto_ProtobufDifferentialDriveWheelVoltages::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufDifferentialDriveWheelVoltages, wpi_proto_ProtobufDifferentialDriveWheelVoltages, AUTO)
#ifndef PB_CONVERT_DOUBLE_FLOAT
/* On some platforms (such as AVR), double is really float.
* To be able to encode/decode double on these platforms, you need.
* to define PB_CONVERT_DOUBLE_FLOAT in pb.h or compiler command line.
*/
PB_STATIC_ASSERT(sizeof(double) == 8, DOUBLE_MUST_BE_8_BYTES)
#endif

View File

@@ -0,0 +1,158 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */
#ifndef PB_WPI_PROTO_CONTROLLER_NPB_H_INCLUDED
#define PB_WPI_PROTO_CONTROLLER_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
typedef struct _wpi_proto_ProtobufArmFeedforward {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double ks;
double kg;
double kv;
double ka;
double dt;
} wpi_proto_ProtobufArmFeedforward;
typedef struct _wpi_proto_ProtobufDifferentialDriveFeedforward {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double kv_linear;
double ka_linear;
double kv_angular;
double ka_angular;
} wpi_proto_ProtobufDifferentialDriveFeedforward;
typedef struct _wpi_proto_ProtobufElevatorFeedforward {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double ks;
double kg;
double kv;
double ka;
double dt;
} wpi_proto_ProtobufElevatorFeedforward;
typedef struct _wpi_proto_ProtobufSimpleMotorFeedforward {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double ks;
double kv;
double ka;
double dt;
} wpi_proto_ProtobufSimpleMotorFeedforward;
typedef struct _wpi_proto_ProtobufDifferentialDriveWheelVoltages {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double left;
double right;
} wpi_proto_ProtobufDifferentialDriveWheelVoltages;
/* Initializer values for message structs */
#define wpi_proto_ProtobufArmFeedforward_init_default {0, 0, 0, 0, 0}
#define wpi_proto_ProtobufDifferentialDriveFeedforward_init_default {0, 0, 0, 0}
#define wpi_proto_ProtobufElevatorFeedforward_init_default {0, 0, 0, 0, 0}
#define wpi_proto_ProtobufSimpleMotorFeedforward_init_default {0, 0, 0, 0}
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_default {0, 0}
#define wpi_proto_ProtobufArmFeedforward_init_zero {0, 0, 0, 0, 0}
#define wpi_proto_ProtobufDifferentialDriveFeedforward_init_zero {0, 0, 0, 0}
#define wpi_proto_ProtobufElevatorFeedforward_init_zero {0, 0, 0, 0, 0}
#define wpi_proto_ProtobufSimpleMotorFeedforward_init_zero {0, 0, 0, 0}
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_zero {0, 0}
/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufArmFeedforward_ks_tag 1
#define wpi_proto_ProtobufArmFeedforward_kg_tag 2
#define wpi_proto_ProtobufArmFeedforward_kv_tag 3
#define wpi_proto_ProtobufArmFeedforward_ka_tag 4
#define wpi_proto_ProtobufArmFeedforward_dt_tag 5
#define wpi_proto_ProtobufDifferentialDriveFeedforward_kv_linear_tag 1
#define wpi_proto_ProtobufDifferentialDriveFeedforward_ka_linear_tag 2
#define wpi_proto_ProtobufDifferentialDriveFeedforward_kv_angular_tag 3
#define wpi_proto_ProtobufDifferentialDriveFeedforward_ka_angular_tag 4
#define wpi_proto_ProtobufElevatorFeedforward_ks_tag 1
#define wpi_proto_ProtobufElevatorFeedforward_kg_tag 2
#define wpi_proto_ProtobufElevatorFeedforward_kv_tag 3
#define wpi_proto_ProtobufElevatorFeedforward_ka_tag 4
#define wpi_proto_ProtobufElevatorFeedforward_dt_tag 5
#define wpi_proto_ProtobufSimpleMotorFeedforward_ks_tag 1
#define wpi_proto_ProtobufSimpleMotorFeedforward_kv_tag 2
#define wpi_proto_ProtobufSimpleMotorFeedforward_ka_tag 3
#define wpi_proto_ProtobufSimpleMotorFeedforward_dt_tag 4
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_left_tag 1
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_right_tag 2
/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufArmFeedforward_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, ks, 1) \
X(a, STATIC, SINGULAR, DOUBLE, kg, 2) \
X(a, STATIC, SINGULAR, DOUBLE, kv, 3) \
X(a, STATIC, SINGULAR, DOUBLE, ka, 4) \
X(a, STATIC, SINGULAR, DOUBLE, dt, 5)
#define wpi_proto_ProtobufArmFeedforward_CALLBACK NULL
#define wpi_proto_ProtobufArmFeedforward_DEFAULT NULL
#define wpi_proto_ProtobufDifferentialDriveFeedforward_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, kv_linear, 1) \
X(a, STATIC, SINGULAR, DOUBLE, ka_linear, 2) \
X(a, STATIC, SINGULAR, DOUBLE, kv_angular, 3) \
X(a, STATIC, SINGULAR, DOUBLE, ka_angular, 4)
#define wpi_proto_ProtobufDifferentialDriveFeedforward_CALLBACK NULL
#define wpi_proto_ProtobufDifferentialDriveFeedforward_DEFAULT NULL
#define wpi_proto_ProtobufElevatorFeedforward_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, ks, 1) \
X(a, STATIC, SINGULAR, DOUBLE, kg, 2) \
X(a, STATIC, SINGULAR, DOUBLE, kv, 3) \
X(a, STATIC, SINGULAR, DOUBLE, ka, 4) \
X(a, STATIC, SINGULAR, DOUBLE, dt, 5)
#define wpi_proto_ProtobufElevatorFeedforward_CALLBACK NULL
#define wpi_proto_ProtobufElevatorFeedforward_DEFAULT NULL
#define wpi_proto_ProtobufSimpleMotorFeedforward_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, ks, 1) \
X(a, STATIC, SINGULAR, DOUBLE, kv, 2) \
X(a, STATIC, SINGULAR, DOUBLE, ka, 3) \
X(a, STATIC, SINGULAR, DOUBLE, dt, 4)
#define wpi_proto_ProtobufSimpleMotorFeedforward_CALLBACK NULL
#define wpi_proto_ProtobufSimpleMotorFeedforward_DEFAULT NULL
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, left, 1) \
X(a, STATIC, SINGULAR, DOUBLE, right, 2)
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_CALLBACK NULL
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_DEFAULT NULL
/* Maximum encoded size of messages (where known) */
#define WPI_PROTO_CONTROLLER_NPB_H_MAX_SIZE wpi_proto_ProtobufArmFeedforward_size
#define wpi_proto_ProtobufArmFeedforward_size 45
#define wpi_proto_ProtobufDifferentialDriveFeedforward_size 36
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_size 18
#define wpi_proto_ProtobufElevatorFeedforward_size 45
#define wpi_proto_ProtobufSimpleMotorFeedforward_size 36
#endif

View File

@@ -0,0 +1,256 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.9 */
#include "geometry2d.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
#include <span>
#include <string_view>
static const uint8_t file_descriptor[] {
0x0a,0x10,0x67,0x65,0x6f,0x6d,0x65,0x74,0x72,0x79,
0x32,0x64,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x12,0x09,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x22,
0x33,0x0a,0x15,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,
0x66,0x54,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,0x69,
0x6f,0x6e,0x32,0x64,0x12,0x0c,0x0a,0x01,0x78,0x18,
0x01,0x20,0x01,0x28,0x01,0x52,0x01,0x78,0x12,0x0c,
0x0a,0x01,0x79,0x18,0x02,0x20,0x01,0x28,0x01,0x52,
0x01,0x79,0x22,0x2a,0x0a,0x12,0x50,0x72,0x6f,0x74,
0x6f,0x62,0x75,0x66,0x52,0x6f,0x74,0x61,0x74,0x69,
0x6f,0x6e,0x32,0x64,0x12,0x14,0x0a,0x05,0x76,0x61,
0x6c,0x75,0x65,0x18,0x01,0x20,0x01,0x28,0x01,0x52,
0x05,0x76,0x61,0x6c,0x75,0x65,0x22,0x8f,0x01,0x0a,
0x0e,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x50,
0x6f,0x73,0x65,0x32,0x64,0x12,0x42,0x0a,0x0b,0x74,
0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,0x69,0x6f,0x6e,
0x18,0x01,0x20,0x01,0x28,0x0b,0x32,0x20,0x2e,0x77,
0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,
0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x54,0x72,0x61,
0x6e,0x73,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x32,0x64,
0x52,0x0b,0x74,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,
0x69,0x6f,0x6e,0x12,0x39,0x0a,0x08,0x72,0x6f,0x74,
0x61,0x74,0x69,0x6f,0x6e,0x18,0x02,0x20,0x01,0x28,
0x0b,0x32,0x1d,0x2e,0x77,0x70,0x69,0x2e,0x70,0x72,
0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,0x6f,0x62,
0x75,0x66,0x52,0x6f,0x74,0x61,0x74,0x69,0x6f,0x6e,
0x32,0x64,0x52,0x08,0x72,0x6f,0x74,0x61,0x74,0x69,
0x6f,0x6e,0x22,0x94,0x01,0x0a,0x13,0x50,0x72,0x6f,
0x74,0x6f,0x62,0x75,0x66,0x54,0x72,0x61,0x6e,0x73,
0x66,0x6f,0x72,0x6d,0x32,0x64,0x12,0x42,0x0a,0x0b,
0x74,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,0x69,0x6f,
0x6e,0x18,0x01,0x20,0x01,0x28,0x0b,0x32,0x20,0x2e,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x54,0x72,
0x61,0x6e,0x73,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x32,
0x64,0x52,0x0b,0x74,0x72,0x61,0x6e,0x73,0x6c,0x61,
0x74,0x69,0x6f,0x6e,0x12,0x39,0x0a,0x08,0x72,0x6f,
0x74,0x61,0x74,0x69,0x6f,0x6e,0x18,0x02,0x20,0x01,
0x28,0x0b,0x32,0x1d,0x2e,0x77,0x70,0x69,0x2e,0x70,
0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,0x6f,
0x62,0x75,0x66,0x52,0x6f,0x74,0x61,0x74,0x69,0x6f,
0x6e,0x32,0x64,0x52,0x08,0x72,0x6f,0x74,0x61,0x74,
0x69,0x6f,0x6e,0x22,0x49,0x0a,0x0f,0x50,0x72,0x6f,
0x74,0x6f,0x62,0x75,0x66,0x54,0x77,0x69,0x73,0x74,
0x32,0x64,0x12,0x0e,0x0a,0x02,0x64,0x78,0x18,0x01,
0x20,0x01,0x28,0x01,0x52,0x02,0x64,0x78,0x12,0x0e,
0x0a,0x02,0x64,0x79,0x18,0x02,0x20,0x01,0x28,0x01,
0x52,0x02,0x64,0x79,0x12,0x16,0x0a,0x06,0x64,0x74,
0x68,0x65,0x74,0x61,0x18,0x03,0x20,0x01,0x28,0x01,
0x52,0x06,0x64,0x74,0x68,0x65,0x74,0x61,0x22,0x78,
0x0a,0x13,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,
0x52,0x65,0x63,0x74,0x61,0x6e,0x67,0x6c,0x65,0x32,
0x64,0x12,0x31,0x0a,0x06,0x63,0x65,0x6e,0x74,0x65,
0x72,0x18,0x01,0x20,0x01,0x28,0x0b,0x32,0x19,0x2e,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x50,0x6f,
0x73,0x65,0x32,0x64,0x52,0x06,0x63,0x65,0x6e,0x74,
0x65,0x72,0x12,0x16,0x0a,0x06,0x78,0x57,0x69,0x64,
0x74,0x68,0x18,0x02,0x20,0x01,0x28,0x01,0x52,0x06,
0x78,0x57,0x69,0x64,0x74,0x68,0x12,0x16,0x0a,0x06,
0x79,0x57,0x69,0x64,0x74,0x68,0x18,0x03,0x20,0x01,
0x28,0x01,0x52,0x06,0x79,0x57,0x69,0x64,0x74,0x68,
0x22,0x82,0x01,0x0a,0x11,0x50,0x72,0x6f,0x74,0x6f,
0x62,0x75,0x66,0x45,0x6c,0x6c,0x69,0x70,0x73,0x65,
0x32,0x64,0x12,0x31,0x0a,0x06,0x63,0x65,0x6e,0x74,
0x65,0x72,0x18,0x01,0x20,0x01,0x28,0x0b,0x32,0x19,
0x2e,0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,
0x2e,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x50,
0x6f,0x73,0x65,0x32,0x64,0x52,0x06,0x63,0x65,0x6e,
0x74,0x65,0x72,0x12,0x1c,0x0a,0x09,0x78,0x53,0x65,
0x6d,0x69,0x41,0x78,0x69,0x73,0x18,0x02,0x20,0x01,
0x28,0x01,0x52,0x09,0x78,0x53,0x65,0x6d,0x69,0x41,
0x78,0x69,0x73,0x12,0x1c,0x0a,0x09,0x79,0x53,0x65,
0x6d,0x69,0x41,0x78,0x69,0x73,0x18,0x03,0x20,0x01,
0x28,0x01,0x52,0x09,0x79,0x53,0x65,0x6d,0x69,0x41,
0x78,0x69,0x73,0x42,0x1a,0x0a,0x18,0x65,0x64,0x75,
0x2e,0x77,0x70,0x69,0x2e,0x66,0x69,0x72,0x73,0x74,
0x2e,0x6d,0x61,0x74,0x68,0x2e,0x70,0x72,0x6f,0x74,
0x6f,0x4a,0xc9,0x08,0x0a,0x06,0x12,0x04,0x00,0x00,
0x29,0x01,0x0a,0x08,0x0a,0x01,0x0c,0x12,0x03,0x00,
0x00,0x12,0x0a,0x08,0x0a,0x01,0x02,0x12,0x03,0x02,
0x00,0x12,0x0a,0x08,0x0a,0x01,0x08,0x12,0x03,0x04,
0x00,0x31,0x0a,0x09,0x0a,0x02,0x08,0x01,0x12,0x03,
0x04,0x00,0x31,0x0a,0x0a,0x0a,0x02,0x04,0x00,0x12,
0x04,0x06,0x00,0x09,0x01,0x0a,0x0a,0x0a,0x03,0x04,
0x00,0x01,0x12,0x03,0x06,0x08,0x1d,0x0a,0x0b,0x0a,
0x04,0x04,0x00,0x02,0x00,0x12,0x03,0x07,0x02,0x0f,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,0x05,0x12,
0x03,0x07,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x00,0x01,0x12,0x03,0x07,0x09,0x0a,0x0a,0x0c,
0x0a,0x05,0x04,0x00,0x02,0x00,0x03,0x12,0x03,0x07,
0x0d,0x0e,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,0x01,
0x12,0x03,0x08,0x02,0x0f,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x01,0x05,0x12,0x03,0x08,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x01,0x12,0x03,
0x08,0x09,0x0a,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x01,0x03,0x12,0x03,0x08,0x0d,0x0e,0x0a,0x0a,0x0a,
0x02,0x04,0x01,0x12,0x04,0x0b,0x00,0x0d,0x01,0x0a,
0x0a,0x0a,0x03,0x04,0x01,0x01,0x12,0x03,0x0b,0x08,
0x1a,0x0a,0x0b,0x0a,0x04,0x04,0x01,0x02,0x00,0x12,
0x03,0x0c,0x02,0x13,0x0a,0x0c,0x0a,0x05,0x04,0x01,
0x02,0x00,0x05,0x12,0x03,0x0c,0x02,0x08,0x0a,0x0c,
0x0a,0x05,0x04,0x01,0x02,0x00,0x01,0x12,0x03,0x0c,
0x09,0x0e,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x00,
0x03,0x12,0x03,0x0c,0x11,0x12,0x0a,0x0a,0x0a,0x02,
0x04,0x02,0x12,0x04,0x0f,0x00,0x12,0x01,0x0a,0x0a,
0x0a,0x03,0x04,0x02,0x01,0x12,0x03,0x0f,0x08,0x16,
0x0a,0x0b,0x0a,0x04,0x04,0x02,0x02,0x00,0x12,0x03,
0x10,0x02,0x28,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,
0x00,0x06,0x12,0x03,0x10,0x02,0x17,0x0a,0x0c,0x0a,
0x05,0x04,0x02,0x02,0x00,0x01,0x12,0x03,0x10,0x18,
0x23,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,0x00,0x03,
0x12,0x03,0x10,0x26,0x27,0x0a,0x0b,0x0a,0x04,0x04,
0x02,0x02,0x01,0x12,0x03,0x11,0x02,0x22,0x0a,0x0c,
0x0a,0x05,0x04,0x02,0x02,0x01,0x06,0x12,0x03,0x11,
0x02,0x14,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,0x01,
0x01,0x12,0x03,0x11,0x15,0x1d,0x0a,0x0c,0x0a,0x05,
0x04,0x02,0x02,0x01,0x03,0x12,0x03,0x11,0x20,0x21,
0x0a,0x0a,0x0a,0x02,0x04,0x03,0x12,0x04,0x14,0x00,
0x17,0x01,0x0a,0x0a,0x0a,0x03,0x04,0x03,0x01,0x12,
0x03,0x14,0x08,0x1b,0x0a,0x0b,0x0a,0x04,0x04,0x03,
0x02,0x00,0x12,0x03,0x15,0x02,0x28,0x0a,0x0c,0x0a,
0x05,0x04,0x03,0x02,0x00,0x06,0x12,0x03,0x15,0x02,
0x17,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x00,0x01,
0x12,0x03,0x15,0x18,0x23,0x0a,0x0c,0x0a,0x05,0x04,
0x03,0x02,0x00,0x03,0x12,0x03,0x15,0x26,0x27,0x0a,
0x0b,0x0a,0x04,0x04,0x03,0x02,0x01,0x12,0x03,0x16,
0x02,0x22,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x01,
0x06,0x12,0x03,0x16,0x02,0x14,0x0a,0x0c,0x0a,0x05,
0x04,0x03,0x02,0x01,0x01,0x12,0x03,0x16,0x15,0x1d,
0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x01,0x03,0x12,
0x03,0x16,0x20,0x21,0x0a,0x0a,0x0a,0x02,0x04,0x04,
0x12,0x04,0x19,0x00,0x1d,0x01,0x0a,0x0a,0x0a,0x03,
0x04,0x04,0x01,0x12,0x03,0x19,0x08,0x17,0x0a,0x0b,
0x0a,0x04,0x04,0x04,0x02,0x00,0x12,0x03,0x1a,0x02,
0x10,0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x00,0x05,
0x12,0x03,0x1a,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,
0x04,0x02,0x00,0x01,0x12,0x03,0x1a,0x09,0x0b,0x0a,
0x0c,0x0a,0x05,0x04,0x04,0x02,0x00,0x03,0x12,0x03,
0x1a,0x0e,0x0f,0x0a,0x0b,0x0a,0x04,0x04,0x04,0x02,
0x01,0x12,0x03,0x1b,0x02,0x10,0x0a,0x0c,0x0a,0x05,
0x04,0x04,0x02,0x01,0x05,0x12,0x03,0x1b,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x01,0x01,0x12,
0x03,0x1b,0x09,0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x04,
0x02,0x01,0x03,0x12,0x03,0x1b,0x0e,0x0f,0x0a,0x0b,
0x0a,0x04,0x04,0x04,0x02,0x02,0x12,0x03,0x1c,0x02,
0x14,0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x02,0x05,
0x12,0x03,0x1c,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,
0x04,0x02,0x02,0x01,0x12,0x03,0x1c,0x09,0x0f,0x0a,
0x0c,0x0a,0x05,0x04,0x04,0x02,0x02,0x03,0x12,0x03,
0x1c,0x12,0x13,0x0a,0x0a,0x0a,0x02,0x04,0x05,0x12,
0x04,0x1f,0x00,0x23,0x01,0x0a,0x0a,0x0a,0x03,0x04,
0x05,0x01,0x12,0x03,0x1f,0x08,0x1b,0x0a,0x0b,0x0a,
0x04,0x04,0x05,0x02,0x00,0x12,0x03,0x20,0x02,0x1c,
0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,0x00,0x06,0x12,
0x03,0x20,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,0x05,
0x02,0x00,0x01,0x12,0x03,0x20,0x11,0x17,0x0a,0x0c,
0x0a,0x05,0x04,0x05,0x02,0x00,0x03,0x12,0x03,0x20,
0x1a,0x1b,0x0a,0x0b,0x0a,0x04,0x04,0x05,0x02,0x01,
0x12,0x03,0x21,0x02,0x14,0x0a,0x0c,0x0a,0x05,0x04,
0x05,0x02,0x01,0x05,0x12,0x03,0x21,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x05,0x02,0x01,0x01,0x12,0x03,
0x21,0x09,0x0f,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,
0x01,0x03,0x12,0x03,0x21,0x12,0x13,0x0a,0x0b,0x0a,
0x04,0x04,0x05,0x02,0x02,0x12,0x03,0x22,0x02,0x14,
0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,0x02,0x05,0x12,
0x03,0x22,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x05,
0x02,0x02,0x01,0x12,0x03,0x22,0x09,0x0f,0x0a,0x0c,
0x0a,0x05,0x04,0x05,0x02,0x02,0x03,0x12,0x03,0x22,
0x12,0x13,0x0a,0x0a,0x0a,0x02,0x04,0x06,0x12,0x04,
0x25,0x00,0x29,0x01,0x0a,0x0a,0x0a,0x03,0x04,0x06,
0x01,0x12,0x03,0x25,0x08,0x19,0x0a,0x0b,0x0a,0x04,
0x04,0x06,0x02,0x00,0x12,0x03,0x26,0x02,0x1c,0x0a,
0x0c,0x0a,0x05,0x04,0x06,0x02,0x00,0x06,0x12,0x03,
0x26,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,0x06,0x02,
0x00,0x01,0x12,0x03,0x26,0x11,0x17,0x0a,0x0c,0x0a,
0x05,0x04,0x06,0x02,0x00,0x03,0x12,0x03,0x26,0x1a,
0x1b,0x0a,0x0b,0x0a,0x04,0x04,0x06,0x02,0x01,0x12,
0x03,0x27,0x02,0x17,0x0a,0x0c,0x0a,0x05,0x04,0x06,
0x02,0x01,0x05,0x12,0x03,0x27,0x02,0x08,0x0a,0x0c,
0x0a,0x05,0x04,0x06,0x02,0x01,0x01,0x12,0x03,0x27,
0x09,0x12,0x0a,0x0c,0x0a,0x05,0x04,0x06,0x02,0x01,
0x03,0x12,0x03,0x27,0x15,0x16,0x0a,0x0b,0x0a,0x04,
0x04,0x06,0x02,0x02,0x12,0x03,0x28,0x02,0x17,0x0a,
0x0c,0x0a,0x05,0x04,0x06,0x02,0x02,0x05,0x12,0x03,
0x28,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x06,0x02,
0x02,0x01,0x12,0x03,0x28,0x09,0x12,0x0a,0x0c,0x0a,
0x05,0x04,0x06,0x02,0x02,0x03,0x12,0x03,0x28,0x15,
0x16,0x62,0x06,0x70,0x72,0x6f,0x74,0x6f,0x33,
};
static const char file_name[] = "geometry2d.proto";
static const char wpi_proto_ProtobufTranslation2d_name[] = "wpi.proto.ProtobufTranslation2d";
std::string_view wpi_proto_ProtobufTranslation2d::msg_name(void) noexcept { return wpi_proto_ProtobufTranslation2d_name; }
pb_filedesc_t wpi_proto_ProtobufTranslation2d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufTranslation2d, wpi_proto_ProtobufTranslation2d, AUTO)
static const char wpi_proto_ProtobufRotation2d_name[] = "wpi.proto.ProtobufRotation2d";
std::string_view wpi_proto_ProtobufRotation2d::msg_name(void) noexcept { return wpi_proto_ProtobufRotation2d_name; }
pb_filedesc_t wpi_proto_ProtobufRotation2d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufRotation2d, wpi_proto_ProtobufRotation2d, AUTO)
static const char wpi_proto_ProtobufPose2d_name[] = "wpi.proto.ProtobufPose2d";
std::string_view wpi_proto_ProtobufPose2d::msg_name(void) noexcept { return wpi_proto_ProtobufPose2d_name; }
pb_filedesc_t wpi_proto_ProtobufPose2d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufPose2d, wpi_proto_ProtobufPose2d, AUTO)
static const char wpi_proto_ProtobufTransform2d_name[] = "wpi.proto.ProtobufTransform2d";
std::string_view wpi_proto_ProtobufTransform2d::msg_name(void) noexcept { return wpi_proto_ProtobufTransform2d_name; }
pb_filedesc_t wpi_proto_ProtobufTransform2d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufTransform2d, wpi_proto_ProtobufTransform2d, AUTO)
static const char wpi_proto_ProtobufTwist2d_name[] = "wpi.proto.ProtobufTwist2d";
std::string_view wpi_proto_ProtobufTwist2d::msg_name(void) noexcept { return wpi_proto_ProtobufTwist2d_name; }
pb_filedesc_t wpi_proto_ProtobufTwist2d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufTwist2d, wpi_proto_ProtobufTwist2d, AUTO)
static const char wpi_proto_ProtobufRectangle2d_name[] = "wpi.proto.ProtobufRectangle2d";
std::string_view wpi_proto_ProtobufRectangle2d::msg_name(void) noexcept { return wpi_proto_ProtobufRectangle2d_name; }
pb_filedesc_t wpi_proto_ProtobufRectangle2d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufRectangle2d, wpi_proto_ProtobufRectangle2d, AUTO)
static const char wpi_proto_ProtobufEllipse2d_name[] = "wpi.proto.ProtobufEllipse2d";
std::string_view wpi_proto_ProtobufEllipse2d::msg_name(void) noexcept { return wpi_proto_ProtobufEllipse2d_name; }
pb_filedesc_t wpi_proto_ProtobufEllipse2d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufEllipse2d, wpi_proto_ProtobufEllipse2d, AUTO)
#ifndef PB_CONVERT_DOUBLE_FLOAT
/* On some platforms (such as AVR), double is really float.
* To be able to encode/decode double on these platforms, you need.
* to define PB_CONVERT_DOUBLE_FLOAT in pb.h or compiler command line.
*/
PB_STATIC_ASSERT(sizeof(double) == 8, DOUBLE_MUST_BE_8_BYTES)
#endif

View File

@@ -0,0 +1,180 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */
#ifndef PB_WPI_PROTO_GEOMETRY2D_NPB_H_INCLUDED
#define PB_WPI_PROTO_GEOMETRY2D_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
typedef struct _wpi_proto_ProtobufTranslation2d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double x;
double y;
} wpi_proto_ProtobufTranslation2d;
typedef struct _wpi_proto_ProtobufRotation2d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double value;
} wpi_proto_ProtobufRotation2d;
typedef struct _wpi_proto_ProtobufPose2d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t translation;
pb_callback_t rotation;
} wpi_proto_ProtobufPose2d;
typedef struct _wpi_proto_ProtobufTransform2d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t translation;
pb_callback_t rotation;
} wpi_proto_ProtobufTransform2d;
typedef struct _wpi_proto_ProtobufTwist2d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double dx;
double dy;
double dtheta;
} wpi_proto_ProtobufTwist2d;
typedef struct _wpi_proto_ProtobufRectangle2d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t center;
double xWidth;
double yWidth;
} wpi_proto_ProtobufRectangle2d;
typedef struct _wpi_proto_ProtobufEllipse2d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t center;
double xSemiAxis;
double ySemiAxis;
} wpi_proto_ProtobufEllipse2d;
/* Initializer values for message structs */
#define wpi_proto_ProtobufTranslation2d_init_default {0, 0}
#define wpi_proto_ProtobufRotation2d_init_default {0}
#define wpi_proto_ProtobufPose2d_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufTransform2d_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufTwist2d_init_default {0, 0, 0}
#define wpi_proto_ProtobufRectangle2d_init_default {{{NULL}, NULL}, 0, 0}
#define wpi_proto_ProtobufEllipse2d_init_default {{{NULL}, NULL}, 0, 0}
#define wpi_proto_ProtobufTranslation2d_init_zero {0, 0}
#define wpi_proto_ProtobufRotation2d_init_zero {0}
#define wpi_proto_ProtobufPose2d_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufTransform2d_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufTwist2d_init_zero {0, 0, 0}
#define wpi_proto_ProtobufRectangle2d_init_zero {{{NULL}, NULL}, 0, 0}
#define wpi_proto_ProtobufEllipse2d_init_zero {{{NULL}, NULL}, 0, 0}
/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufTranslation2d_x_tag 1
#define wpi_proto_ProtobufTranslation2d_y_tag 2
#define wpi_proto_ProtobufRotation2d_value_tag 1
#define wpi_proto_ProtobufPose2d_translation_tag 1
#define wpi_proto_ProtobufPose2d_rotation_tag 2
#define wpi_proto_ProtobufTransform2d_translation_tag 1
#define wpi_proto_ProtobufTransform2d_rotation_tag 2
#define wpi_proto_ProtobufTwist2d_dx_tag 1
#define wpi_proto_ProtobufTwist2d_dy_tag 2
#define wpi_proto_ProtobufTwist2d_dtheta_tag 3
#define wpi_proto_ProtobufRectangle2d_center_tag 1
#define wpi_proto_ProtobufRectangle2d_xWidth_tag 2
#define wpi_proto_ProtobufRectangle2d_yWidth_tag 3
#define wpi_proto_ProtobufEllipse2d_center_tag 1
#define wpi_proto_ProtobufEllipse2d_xSemiAxis_tag 2
#define wpi_proto_ProtobufEllipse2d_ySemiAxis_tag 3
/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufTranslation2d_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, x, 1) \
X(a, STATIC, SINGULAR, DOUBLE, y, 2)
#define wpi_proto_ProtobufTranslation2d_CALLBACK NULL
#define wpi_proto_ProtobufTranslation2d_DEFAULT NULL
#define wpi_proto_ProtobufRotation2d_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, value, 1)
#define wpi_proto_ProtobufRotation2d_CALLBACK NULL
#define wpi_proto_ProtobufRotation2d_DEFAULT NULL
#define wpi_proto_ProtobufPose2d_FIELDLIST(X, a) \
X(a, CALLBACK, OPTIONAL, MESSAGE, translation, 1) \
X(a, CALLBACK, OPTIONAL, MESSAGE, rotation, 2)
#define wpi_proto_ProtobufPose2d_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufPose2d_DEFAULT NULL
#define wpi_proto_ProtobufPose2d_translation_MSGTYPE wpi_proto_ProtobufTranslation2d
#define wpi_proto_ProtobufPose2d_rotation_MSGTYPE wpi_proto_ProtobufRotation2d
#define wpi_proto_ProtobufTransform2d_FIELDLIST(X, a) \
X(a, CALLBACK, OPTIONAL, MESSAGE, translation, 1) \
X(a, CALLBACK, OPTIONAL, MESSAGE, rotation, 2)
#define wpi_proto_ProtobufTransform2d_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufTransform2d_DEFAULT NULL
#define wpi_proto_ProtobufTransform2d_translation_MSGTYPE wpi_proto_ProtobufTranslation2d
#define wpi_proto_ProtobufTransform2d_rotation_MSGTYPE wpi_proto_ProtobufRotation2d
#define wpi_proto_ProtobufTwist2d_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, dx, 1) \
X(a, STATIC, SINGULAR, DOUBLE, dy, 2) \
X(a, STATIC, SINGULAR, DOUBLE, dtheta, 3)
#define wpi_proto_ProtobufTwist2d_CALLBACK NULL
#define wpi_proto_ProtobufTwist2d_DEFAULT NULL
#define wpi_proto_ProtobufRectangle2d_FIELDLIST(X, a) \
X(a, CALLBACK, OPTIONAL, MESSAGE, center, 1) \
X(a, STATIC, SINGULAR, DOUBLE, xWidth, 2) \
X(a, STATIC, SINGULAR, DOUBLE, yWidth, 3)
#define wpi_proto_ProtobufRectangle2d_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufRectangle2d_DEFAULT NULL
#define wpi_proto_ProtobufRectangle2d_center_MSGTYPE wpi_proto_ProtobufPose2d
#define wpi_proto_ProtobufEllipse2d_FIELDLIST(X, a) \
X(a, CALLBACK, OPTIONAL, MESSAGE, center, 1) \
X(a, STATIC, SINGULAR, DOUBLE, xSemiAxis, 2) \
X(a, STATIC, SINGULAR, DOUBLE, ySemiAxis, 3)
#define wpi_proto_ProtobufEllipse2d_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufEllipse2d_DEFAULT NULL
#define wpi_proto_ProtobufEllipse2d_center_MSGTYPE wpi_proto_ProtobufPose2d
/* Maximum encoded size of messages (where known) */
/* wpi_proto_ProtobufPose2d_size depends on runtime parameters */
/* wpi_proto_ProtobufTransform2d_size depends on runtime parameters */
/* wpi_proto_ProtobufRectangle2d_size depends on runtime parameters */
/* wpi_proto_ProtobufEllipse2d_size depends on runtime parameters */
#define WPI_PROTO_GEOMETRY2D_NPB_H_MAX_SIZE wpi_proto_ProtobufTwist2d_size
#define wpi_proto_ProtobufRotation2d_size 9
#define wpi_proto_ProtobufTranslation2d_size 18
#define wpi_proto_ProtobufTwist2d_size 27
#endif

View File

@@ -0,0 +1,249 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.9 */
#include "geometry3d.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
#include <span>
#include <string_view>
static const uint8_t file_descriptor[] {
0x0a,0x10,0x67,0x65,0x6f,0x6d,0x65,0x74,0x72,0x79,
0x33,0x64,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x12,0x09,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x22,
0x41,0x0a,0x15,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,
0x66,0x54,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,0x69,
0x6f,0x6e,0x33,0x64,0x12,0x0c,0x0a,0x01,0x78,0x18,
0x01,0x20,0x01,0x28,0x01,0x52,0x01,0x78,0x12,0x0c,
0x0a,0x01,0x79,0x18,0x02,0x20,0x01,0x28,0x01,0x52,
0x01,0x79,0x12,0x0c,0x0a,0x01,0x7a,0x18,0x03,0x20,
0x01,0x28,0x01,0x52,0x01,0x7a,0x22,0x4c,0x0a,0x12,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x51,0x75,
0x61,0x74,0x65,0x72,0x6e,0x69,0x6f,0x6e,0x12,0x0c,
0x0a,0x01,0x77,0x18,0x01,0x20,0x01,0x28,0x01,0x52,
0x01,0x77,0x12,0x0c,0x0a,0x01,0x78,0x18,0x02,0x20,
0x01,0x28,0x01,0x52,0x01,0x78,0x12,0x0c,0x0a,0x01,
0x79,0x18,0x03,0x20,0x01,0x28,0x01,0x52,0x01,0x79,
0x12,0x0c,0x0a,0x01,0x7a,0x18,0x04,0x20,0x01,0x28,
0x01,0x52,0x01,0x7a,0x22,0x41,0x0a,0x12,0x50,0x72,
0x6f,0x74,0x6f,0x62,0x75,0x66,0x52,0x6f,0x74,0x61,
0x74,0x69,0x6f,0x6e,0x33,0x64,0x12,0x2b,0x0a,0x01,
0x71,0x18,0x01,0x20,0x01,0x28,0x0b,0x32,0x1d,0x2e,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x51,0x75,
0x61,0x74,0x65,0x72,0x6e,0x69,0x6f,0x6e,0x52,0x01,
0x71,0x22,0x8f,0x01,0x0a,0x0e,0x50,0x72,0x6f,0x74,
0x6f,0x62,0x75,0x66,0x50,0x6f,0x73,0x65,0x33,0x64,
0x12,0x42,0x0a,0x0b,0x74,0x72,0x61,0x6e,0x73,0x6c,
0x61,0x74,0x69,0x6f,0x6e,0x18,0x01,0x20,0x01,0x28,
0x0b,0x32,0x20,0x2e,0x77,0x70,0x69,0x2e,0x70,0x72,
0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,0x6f,0x62,
0x75,0x66,0x54,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,
0x69,0x6f,0x6e,0x33,0x64,0x52,0x0b,0x74,0x72,0x61,
0x6e,0x73,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x12,0x39,
0x0a,0x08,0x72,0x6f,0x74,0x61,0x74,0x69,0x6f,0x6e,
0x18,0x02,0x20,0x01,0x28,0x0b,0x32,0x1d,0x2e,0x77,
0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,
0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x52,0x6f,0x74,
0x61,0x74,0x69,0x6f,0x6e,0x33,0x64,0x52,0x08,0x72,
0x6f,0x74,0x61,0x74,0x69,0x6f,0x6e,0x22,0x94,0x01,
0x0a,0x13,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,
0x54,0x72,0x61,0x6e,0x73,0x66,0x6f,0x72,0x6d,0x33,
0x64,0x12,0x42,0x0a,0x0b,0x74,0x72,0x61,0x6e,0x73,
0x6c,0x61,0x74,0x69,0x6f,0x6e,0x18,0x01,0x20,0x01,
0x28,0x0b,0x32,0x20,0x2e,0x77,0x70,0x69,0x2e,0x70,
0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,0x6f,
0x62,0x75,0x66,0x54,0x72,0x61,0x6e,0x73,0x6c,0x61,
0x74,0x69,0x6f,0x6e,0x33,0x64,0x52,0x0b,0x74,0x72,
0x61,0x6e,0x73,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x12,
0x39,0x0a,0x08,0x72,0x6f,0x74,0x61,0x74,0x69,0x6f,
0x6e,0x18,0x02,0x20,0x01,0x28,0x0b,0x32,0x1d,0x2e,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x52,0x6f,
0x74,0x61,0x74,0x69,0x6f,0x6e,0x33,0x64,0x52,0x08,
0x72,0x6f,0x74,0x61,0x74,0x69,0x6f,0x6e,0x22,0x71,
0x0a,0x0f,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,
0x54,0x77,0x69,0x73,0x74,0x33,0x64,0x12,0x0e,0x0a,
0x02,0x64,0x78,0x18,0x01,0x20,0x01,0x28,0x01,0x52,
0x02,0x64,0x78,0x12,0x0e,0x0a,0x02,0x64,0x79,0x18,
0x02,0x20,0x01,0x28,0x01,0x52,0x02,0x64,0x79,0x12,
0x0e,0x0a,0x02,0x64,0x7a,0x18,0x03,0x20,0x01,0x28,
0x01,0x52,0x02,0x64,0x7a,0x12,0x0e,0x0a,0x02,0x72,
0x78,0x18,0x04,0x20,0x01,0x28,0x01,0x52,0x02,0x72,
0x78,0x12,0x0e,0x0a,0x02,0x72,0x79,0x18,0x05,0x20,
0x01,0x28,0x01,0x52,0x02,0x72,0x79,0x12,0x0e,0x0a,
0x02,0x72,0x7a,0x18,0x06,0x20,0x01,0x28,0x01,0x52,
0x02,0x72,0x7a,0x42,0x1a,0x0a,0x18,0x65,0x64,0x75,
0x2e,0x77,0x70,0x69,0x2e,0x66,0x69,0x72,0x73,0x74,
0x2e,0x6d,0x61,0x74,0x68,0x2e,0x70,0x72,0x6f,0x74,
0x6f,0x4a,0x9f,0x09,0x0a,0x06,0x12,0x04,0x00,0x00,
0x28,0x01,0x0a,0x08,0x0a,0x01,0x0c,0x12,0x03,0x00,
0x00,0x12,0x0a,0x08,0x0a,0x01,0x02,0x12,0x03,0x02,
0x00,0x12,0x0a,0x08,0x0a,0x01,0x08,0x12,0x03,0x04,
0x00,0x31,0x0a,0x09,0x0a,0x02,0x08,0x01,0x12,0x03,
0x04,0x00,0x31,0x0a,0x0a,0x0a,0x02,0x04,0x00,0x12,
0x04,0x06,0x00,0x0a,0x01,0x0a,0x0a,0x0a,0x03,0x04,
0x00,0x01,0x12,0x03,0x06,0x08,0x1d,0x0a,0x0b,0x0a,
0x04,0x04,0x00,0x02,0x00,0x12,0x03,0x07,0x02,0x0f,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,0x05,0x12,
0x03,0x07,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x00,0x01,0x12,0x03,0x07,0x09,0x0a,0x0a,0x0c,
0x0a,0x05,0x04,0x00,0x02,0x00,0x03,0x12,0x03,0x07,
0x0d,0x0e,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,0x01,
0x12,0x03,0x08,0x02,0x0f,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x01,0x05,0x12,0x03,0x08,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x01,0x12,0x03,
0x08,0x09,0x0a,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x01,0x03,0x12,0x03,0x08,0x0d,0x0e,0x0a,0x0b,0x0a,
0x04,0x04,0x00,0x02,0x02,0x12,0x03,0x09,0x02,0x0f,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,0x05,0x12,
0x03,0x09,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x02,0x01,0x12,0x03,0x09,0x09,0x0a,0x0a,0x0c,
0x0a,0x05,0x04,0x00,0x02,0x02,0x03,0x12,0x03,0x09,
0x0d,0x0e,0x0a,0x0a,0x0a,0x02,0x04,0x01,0x12,0x04,
0x0c,0x00,0x11,0x01,0x0a,0x0a,0x0a,0x03,0x04,0x01,
0x01,0x12,0x03,0x0c,0x08,0x1a,0x0a,0x0b,0x0a,0x04,
0x04,0x01,0x02,0x00,0x12,0x03,0x0d,0x02,0x0f,0x0a,
0x0c,0x0a,0x05,0x04,0x01,0x02,0x00,0x05,0x12,0x03,
0x0d,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,
0x00,0x01,0x12,0x03,0x0d,0x09,0x0a,0x0a,0x0c,0x0a,
0x05,0x04,0x01,0x02,0x00,0x03,0x12,0x03,0x0d,0x0d,
0x0e,0x0a,0x0b,0x0a,0x04,0x04,0x01,0x02,0x01,0x12,
0x03,0x0e,0x02,0x0f,0x0a,0x0c,0x0a,0x05,0x04,0x01,
0x02,0x01,0x05,0x12,0x03,0x0e,0x02,0x08,0x0a,0x0c,
0x0a,0x05,0x04,0x01,0x02,0x01,0x01,0x12,0x03,0x0e,
0x09,0x0a,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x01,
0x03,0x12,0x03,0x0e,0x0d,0x0e,0x0a,0x0b,0x0a,0x04,
0x04,0x01,0x02,0x02,0x12,0x03,0x0f,0x02,0x0f,0x0a,
0x0c,0x0a,0x05,0x04,0x01,0x02,0x02,0x05,0x12,0x03,
0x0f,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,
0x02,0x01,0x12,0x03,0x0f,0x09,0x0a,0x0a,0x0c,0x0a,
0x05,0x04,0x01,0x02,0x02,0x03,0x12,0x03,0x0f,0x0d,
0x0e,0x0a,0x0b,0x0a,0x04,0x04,0x01,0x02,0x03,0x12,
0x03,0x10,0x02,0x0f,0x0a,0x0c,0x0a,0x05,0x04,0x01,
0x02,0x03,0x05,0x12,0x03,0x10,0x02,0x08,0x0a,0x0c,
0x0a,0x05,0x04,0x01,0x02,0x03,0x01,0x12,0x03,0x10,
0x09,0x0a,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x03,
0x03,0x12,0x03,0x10,0x0d,0x0e,0x0a,0x0a,0x0a,0x02,
0x04,0x02,0x12,0x04,0x13,0x00,0x15,0x01,0x0a,0x0a,
0x0a,0x03,0x04,0x02,0x01,0x12,0x03,0x13,0x08,0x1a,
0x0a,0x0b,0x0a,0x04,0x04,0x02,0x02,0x00,0x12,0x03,
0x14,0x02,0x1b,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,
0x00,0x06,0x12,0x03,0x14,0x02,0x14,0x0a,0x0c,0x0a,
0x05,0x04,0x02,0x02,0x00,0x01,0x12,0x03,0x14,0x15,
0x16,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,0x00,0x03,
0x12,0x03,0x14,0x19,0x1a,0x0a,0x0a,0x0a,0x02,0x04,
0x03,0x12,0x04,0x17,0x00,0x1a,0x01,0x0a,0x0a,0x0a,
0x03,0x04,0x03,0x01,0x12,0x03,0x17,0x08,0x16,0x0a,
0x0b,0x0a,0x04,0x04,0x03,0x02,0x00,0x12,0x03,0x18,
0x02,0x28,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x00,
0x06,0x12,0x03,0x18,0x02,0x17,0x0a,0x0c,0x0a,0x05,
0x04,0x03,0x02,0x00,0x01,0x12,0x03,0x18,0x18,0x23,
0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x00,0x03,0x12,
0x03,0x18,0x26,0x27,0x0a,0x0b,0x0a,0x04,0x04,0x03,
0x02,0x01,0x12,0x03,0x19,0x02,0x22,0x0a,0x0c,0x0a,
0x05,0x04,0x03,0x02,0x01,0x06,0x12,0x03,0x19,0x02,
0x14,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x01,0x01,
0x12,0x03,0x19,0x15,0x1d,0x0a,0x0c,0x0a,0x05,0x04,
0x03,0x02,0x01,0x03,0x12,0x03,0x19,0x20,0x21,0x0a,
0x0a,0x0a,0x02,0x04,0x04,0x12,0x04,0x1c,0x00,0x1f,
0x01,0x0a,0x0a,0x0a,0x03,0x04,0x04,0x01,0x12,0x03,
0x1c,0x08,0x1b,0x0a,0x0b,0x0a,0x04,0x04,0x04,0x02,
0x00,0x12,0x03,0x1d,0x02,0x28,0x0a,0x0c,0x0a,0x05,
0x04,0x04,0x02,0x00,0x06,0x12,0x03,0x1d,0x02,0x17,
0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x00,0x01,0x12,
0x03,0x1d,0x18,0x23,0x0a,0x0c,0x0a,0x05,0x04,0x04,
0x02,0x00,0x03,0x12,0x03,0x1d,0x26,0x27,0x0a,0x0b,
0x0a,0x04,0x04,0x04,0x02,0x01,0x12,0x03,0x1e,0x02,
0x22,0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x01,0x06,
0x12,0x03,0x1e,0x02,0x14,0x0a,0x0c,0x0a,0x05,0x04,
0x04,0x02,0x01,0x01,0x12,0x03,0x1e,0x15,0x1d,0x0a,
0x0c,0x0a,0x05,0x04,0x04,0x02,0x01,0x03,0x12,0x03,
0x1e,0x20,0x21,0x0a,0x0a,0x0a,0x02,0x04,0x05,0x12,
0x04,0x21,0x00,0x28,0x01,0x0a,0x0a,0x0a,0x03,0x04,
0x05,0x01,0x12,0x03,0x21,0x08,0x17,0x0a,0x0b,0x0a,
0x04,0x04,0x05,0x02,0x00,0x12,0x03,0x22,0x02,0x10,
0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,0x00,0x05,0x12,
0x03,0x22,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x05,
0x02,0x00,0x01,0x12,0x03,0x22,0x09,0x0b,0x0a,0x0c,
0x0a,0x05,0x04,0x05,0x02,0x00,0x03,0x12,0x03,0x22,
0x0e,0x0f,0x0a,0x0b,0x0a,0x04,0x04,0x05,0x02,0x01,
0x12,0x03,0x23,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,
0x05,0x02,0x01,0x05,0x12,0x03,0x23,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x05,0x02,0x01,0x01,0x12,0x03,
0x23,0x09,0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,
0x01,0x03,0x12,0x03,0x23,0x0e,0x0f,0x0a,0x0b,0x0a,
0x04,0x04,0x05,0x02,0x02,0x12,0x03,0x24,0x02,0x10,
0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,0x02,0x05,0x12,
0x03,0x24,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x05,
0x02,0x02,0x01,0x12,0x03,0x24,0x09,0x0b,0x0a,0x0c,
0x0a,0x05,0x04,0x05,0x02,0x02,0x03,0x12,0x03,0x24,
0x0e,0x0f,0x0a,0x0b,0x0a,0x04,0x04,0x05,0x02,0x03,
0x12,0x03,0x25,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,
0x05,0x02,0x03,0x05,0x12,0x03,0x25,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x05,0x02,0x03,0x01,0x12,0x03,
0x25,0x09,0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,
0x03,0x03,0x12,0x03,0x25,0x0e,0x0f,0x0a,0x0b,0x0a,
0x04,0x04,0x05,0x02,0x04,0x12,0x03,0x26,0x02,0x10,
0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,0x04,0x05,0x12,
0x03,0x26,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x05,
0x02,0x04,0x01,0x12,0x03,0x26,0x09,0x0b,0x0a,0x0c,
0x0a,0x05,0x04,0x05,0x02,0x04,0x03,0x12,0x03,0x26,
0x0e,0x0f,0x0a,0x0b,0x0a,0x04,0x04,0x05,0x02,0x05,
0x12,0x03,0x27,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,
0x05,0x02,0x05,0x05,0x12,0x03,0x27,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x05,0x02,0x05,0x01,0x12,0x03,
0x27,0x09,0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,
0x05,0x03,0x12,0x03,0x27,0x0e,0x0f,0x62,0x06,0x70,
0x72,0x6f,0x74,0x6f,0x33,
};
static const char file_name[] = "geometry3d.proto";
static const char wpi_proto_ProtobufTranslation3d_name[] = "wpi.proto.ProtobufTranslation3d";
std::string_view wpi_proto_ProtobufTranslation3d::msg_name(void) noexcept { return wpi_proto_ProtobufTranslation3d_name; }
pb_filedesc_t wpi_proto_ProtobufTranslation3d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufTranslation3d, wpi_proto_ProtobufTranslation3d, AUTO)
static const char wpi_proto_ProtobufQuaternion_name[] = "wpi.proto.ProtobufQuaternion";
std::string_view wpi_proto_ProtobufQuaternion::msg_name(void) noexcept { return wpi_proto_ProtobufQuaternion_name; }
pb_filedesc_t wpi_proto_ProtobufQuaternion::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufQuaternion, wpi_proto_ProtobufQuaternion, AUTO)
static const char wpi_proto_ProtobufRotation3d_name[] = "wpi.proto.ProtobufRotation3d";
std::string_view wpi_proto_ProtobufRotation3d::msg_name(void) noexcept { return wpi_proto_ProtobufRotation3d_name; }
pb_filedesc_t wpi_proto_ProtobufRotation3d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufRotation3d, wpi_proto_ProtobufRotation3d, AUTO)
static const char wpi_proto_ProtobufPose3d_name[] = "wpi.proto.ProtobufPose3d";
std::string_view wpi_proto_ProtobufPose3d::msg_name(void) noexcept { return wpi_proto_ProtobufPose3d_name; }
pb_filedesc_t wpi_proto_ProtobufPose3d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufPose3d, wpi_proto_ProtobufPose3d, AUTO)
static const char wpi_proto_ProtobufTransform3d_name[] = "wpi.proto.ProtobufTransform3d";
std::string_view wpi_proto_ProtobufTransform3d::msg_name(void) noexcept { return wpi_proto_ProtobufTransform3d_name; }
pb_filedesc_t wpi_proto_ProtobufTransform3d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufTransform3d, wpi_proto_ProtobufTransform3d, AUTO)
static const char wpi_proto_ProtobufTwist3d_name[] = "wpi.proto.ProtobufTwist3d";
std::string_view wpi_proto_ProtobufTwist3d::msg_name(void) noexcept { return wpi_proto_ProtobufTwist3d_name; }
pb_filedesc_t wpi_proto_ProtobufTwist3d::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufTwist3d, wpi_proto_ProtobufTwist3d, AUTO)
#ifndef PB_CONVERT_DOUBLE_FLOAT
/* On some platforms (such as AVR), double is really float.
* To be able to encode/decode double on these platforms, you need.
* to define PB_CONVERT_DOUBLE_FLOAT in pb.h or compiler command line.
*/
PB_STATIC_ASSERT(sizeof(double) == 8, DOUBLE_MUST_BE_8_BYTES)
#endif

View File

@@ -0,0 +1,171 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */
#ifndef PB_WPI_PROTO_GEOMETRY3D_NPB_H_INCLUDED
#define PB_WPI_PROTO_GEOMETRY3D_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
typedef struct _wpi_proto_ProtobufTranslation3d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double x;
double y;
double z;
} wpi_proto_ProtobufTranslation3d;
typedef struct _wpi_proto_ProtobufQuaternion {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double w;
double x;
double y;
double z;
} wpi_proto_ProtobufQuaternion;
typedef struct _wpi_proto_ProtobufRotation3d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t q;
} wpi_proto_ProtobufRotation3d;
typedef struct _wpi_proto_ProtobufPose3d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t translation;
pb_callback_t rotation;
} wpi_proto_ProtobufPose3d;
typedef struct _wpi_proto_ProtobufTransform3d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t translation;
pb_callback_t rotation;
} wpi_proto_ProtobufTransform3d;
typedef struct _wpi_proto_ProtobufTwist3d {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double dx;
double dy;
double dz;
double rx;
double ry;
double rz;
} wpi_proto_ProtobufTwist3d;
/* Initializer values for message structs */
#define wpi_proto_ProtobufTranslation3d_init_default {0, 0, 0}
#define wpi_proto_ProtobufQuaternion_init_default {0, 0, 0, 0}
#define wpi_proto_ProtobufRotation3d_init_default {{{NULL}, NULL}}
#define wpi_proto_ProtobufPose3d_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufTransform3d_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufTwist3d_init_default {0, 0, 0, 0, 0, 0}
#define wpi_proto_ProtobufTranslation3d_init_zero {0, 0, 0}
#define wpi_proto_ProtobufQuaternion_init_zero {0, 0, 0, 0}
#define wpi_proto_ProtobufRotation3d_init_zero {{{NULL}, NULL}}
#define wpi_proto_ProtobufPose3d_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufTransform3d_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufTwist3d_init_zero {0, 0, 0, 0, 0, 0}
/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufTranslation3d_x_tag 1
#define wpi_proto_ProtobufTranslation3d_y_tag 2
#define wpi_proto_ProtobufTranslation3d_z_tag 3
#define wpi_proto_ProtobufQuaternion_w_tag 1
#define wpi_proto_ProtobufQuaternion_x_tag 2
#define wpi_proto_ProtobufQuaternion_y_tag 3
#define wpi_proto_ProtobufQuaternion_z_tag 4
#define wpi_proto_ProtobufRotation3d_q_tag 1
#define wpi_proto_ProtobufPose3d_translation_tag 1
#define wpi_proto_ProtobufPose3d_rotation_tag 2
#define wpi_proto_ProtobufTransform3d_translation_tag 1
#define wpi_proto_ProtobufTransform3d_rotation_tag 2
#define wpi_proto_ProtobufTwist3d_dx_tag 1
#define wpi_proto_ProtobufTwist3d_dy_tag 2
#define wpi_proto_ProtobufTwist3d_dz_tag 3
#define wpi_proto_ProtobufTwist3d_rx_tag 4
#define wpi_proto_ProtobufTwist3d_ry_tag 5
#define wpi_proto_ProtobufTwist3d_rz_tag 6
/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufTranslation3d_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, x, 1) \
X(a, STATIC, SINGULAR, DOUBLE, y, 2) \
X(a, STATIC, SINGULAR, DOUBLE, z, 3)
#define wpi_proto_ProtobufTranslation3d_CALLBACK NULL
#define wpi_proto_ProtobufTranslation3d_DEFAULT NULL
#define wpi_proto_ProtobufQuaternion_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, w, 1) \
X(a, STATIC, SINGULAR, DOUBLE, x, 2) \
X(a, STATIC, SINGULAR, DOUBLE, y, 3) \
X(a, STATIC, SINGULAR, DOUBLE, z, 4)
#define wpi_proto_ProtobufQuaternion_CALLBACK NULL
#define wpi_proto_ProtobufQuaternion_DEFAULT NULL
#define wpi_proto_ProtobufRotation3d_FIELDLIST(X, a) \
X(a, CALLBACK, OPTIONAL, MESSAGE, q, 1)
#define wpi_proto_ProtobufRotation3d_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufRotation3d_DEFAULT NULL
#define wpi_proto_ProtobufRotation3d_q_MSGTYPE wpi_proto_ProtobufQuaternion
#define wpi_proto_ProtobufPose3d_FIELDLIST(X, a) \
X(a, CALLBACK, OPTIONAL, MESSAGE, translation, 1) \
X(a, CALLBACK, OPTIONAL, MESSAGE, rotation, 2)
#define wpi_proto_ProtobufPose3d_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufPose3d_DEFAULT NULL
#define wpi_proto_ProtobufPose3d_translation_MSGTYPE wpi_proto_ProtobufTranslation3d
#define wpi_proto_ProtobufPose3d_rotation_MSGTYPE wpi_proto_ProtobufRotation3d
#define wpi_proto_ProtobufTransform3d_FIELDLIST(X, a) \
X(a, CALLBACK, OPTIONAL, MESSAGE, translation, 1) \
X(a, CALLBACK, OPTIONAL, MESSAGE, rotation, 2)
#define wpi_proto_ProtobufTransform3d_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufTransform3d_DEFAULT NULL
#define wpi_proto_ProtobufTransform3d_translation_MSGTYPE wpi_proto_ProtobufTranslation3d
#define wpi_proto_ProtobufTransform3d_rotation_MSGTYPE wpi_proto_ProtobufRotation3d
#define wpi_proto_ProtobufTwist3d_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, dx, 1) \
X(a, STATIC, SINGULAR, DOUBLE, dy, 2) \
X(a, STATIC, SINGULAR, DOUBLE, dz, 3) \
X(a, STATIC, SINGULAR, DOUBLE, rx, 4) \
X(a, STATIC, SINGULAR, DOUBLE, ry, 5) \
X(a, STATIC, SINGULAR, DOUBLE, rz, 6)
#define wpi_proto_ProtobufTwist3d_CALLBACK NULL
#define wpi_proto_ProtobufTwist3d_DEFAULT NULL
/* Maximum encoded size of messages (where known) */
/* wpi_proto_ProtobufRotation3d_size depends on runtime parameters */
/* wpi_proto_ProtobufPose3d_size depends on runtime parameters */
/* wpi_proto_ProtobufTransform3d_size depends on runtime parameters */
#define WPI_PROTO_GEOMETRY3D_NPB_H_MAX_SIZE wpi_proto_ProtobufTwist3d_size
#define wpi_proto_ProtobufQuaternion_size 36
#define wpi_proto_ProtobufTranslation3d_size 27
#define wpi_proto_ProtobufTwist3d_size 54
#endif

View File

@@ -0,0 +1,434 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.9 */
#include "kinematics.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
#include <span>
#include <string_view>
static const uint8_t file_descriptor[] {
0x0a,0x10,0x6b,0x69,0x6e,0x65,0x6d,0x61,0x74,0x69,
0x63,0x73,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x12,0x09,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x1a,
0x10,0x67,0x65,0x6f,0x6d,0x65,0x74,0x72,0x79,0x32,
0x64,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x22,0x4d,0x0a,
0x15,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x43,
0x68,0x61,0x73,0x73,0x69,0x73,0x53,0x70,0x65,0x65,
0x64,0x73,0x12,0x0e,0x0a,0x02,0x76,0x78,0x18,0x01,
0x20,0x01,0x28,0x01,0x52,0x02,0x76,0x78,0x12,0x0e,
0x0a,0x02,0x76,0x79,0x18,0x02,0x20,0x01,0x28,0x01,
0x52,0x02,0x76,0x79,0x12,0x14,0x0a,0x05,0x6f,0x6d,
0x65,0x67,0x61,0x18,0x03,0x20,0x01,0x28,0x01,0x52,
0x05,0x6f,0x6d,0x65,0x67,0x61,0x22,0x46,0x0a,0x23,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x44,0x69,
0x66,0x66,0x65,0x72,0x65,0x6e,0x74,0x69,0x61,0x6c,
0x44,0x72,0x69,0x76,0x65,0x4b,0x69,0x6e,0x65,0x6d,
0x61,0x74,0x69,0x63,0x73,0x12,0x1f,0x0a,0x0b,0x74,
0x72,0x61,0x63,0x6b,0x5f,0x77,0x69,0x64,0x74,0x68,
0x18,0x01,0x20,0x01,0x28,0x01,0x52,0x0a,0x74,0x72,
0x61,0x63,0x6b,0x57,0x69,0x64,0x74,0x68,0x22,0x50,
0x0a,0x24,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,
0x44,0x69,0x66,0x66,0x65,0x72,0x65,0x6e,0x74,0x69,
0x61,0x6c,0x44,0x72,0x69,0x76,0x65,0x57,0x68,0x65,
0x65,0x6c,0x53,0x70,0x65,0x65,0x64,0x73,0x12,0x12,
0x0a,0x04,0x6c,0x65,0x66,0x74,0x18,0x01,0x20,0x01,
0x28,0x01,0x52,0x04,0x6c,0x65,0x66,0x74,0x12,0x14,
0x0a,0x05,0x72,0x69,0x67,0x68,0x74,0x18,0x02,0x20,
0x01,0x28,0x01,0x52,0x05,0x72,0x69,0x67,0x68,0x74,
0x22,0x53,0x0a,0x27,0x50,0x72,0x6f,0x74,0x6f,0x62,
0x75,0x66,0x44,0x69,0x66,0x66,0x65,0x72,0x65,0x6e,
0x74,0x69,0x61,0x6c,0x44,0x72,0x69,0x76,0x65,0x57,
0x68,0x65,0x65,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,
0x6f,0x6e,0x73,0x12,0x12,0x0a,0x04,0x6c,0x65,0x66,
0x74,0x18,0x01,0x20,0x01,0x28,0x01,0x52,0x04,0x6c,
0x65,0x66,0x74,0x12,0x14,0x0a,0x05,0x72,0x69,0x67,
0x68,0x74,0x18,0x02,0x20,0x01,0x28,0x01,0x52,0x05,
0x72,0x69,0x67,0x68,0x74,0x22,0xa4,0x02,0x0a,0x1e,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x4d,0x65,
0x63,0x61,0x6e,0x75,0x6d,0x44,0x72,0x69,0x76,0x65,
0x4b,0x69,0x6e,0x65,0x6d,0x61,0x74,0x69,0x63,0x73,
0x12,0x3f,0x0a,0x0a,0x66,0x72,0x6f,0x6e,0x74,0x5f,
0x6c,0x65,0x66,0x74,0x18,0x01,0x20,0x01,0x28,0x0b,
0x32,0x20,0x2e,0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,
0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,
0x66,0x54,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,0x69,
0x6f,0x6e,0x32,0x64,0x52,0x09,0x66,0x72,0x6f,0x6e,
0x74,0x4c,0x65,0x66,0x74,0x12,0x41,0x0a,0x0b,0x66,
0x72,0x6f,0x6e,0x74,0x5f,0x72,0x69,0x67,0x68,0x74,
0x18,0x02,0x20,0x01,0x28,0x0b,0x32,0x20,0x2e,0x77,
0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,
0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x54,0x72,0x61,
0x6e,0x73,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x32,0x64,
0x52,0x0a,0x66,0x72,0x6f,0x6e,0x74,0x52,0x69,0x67,
0x68,0x74,0x12,0x3d,0x0a,0x09,0x72,0x65,0x61,0x72,
0x5f,0x6c,0x65,0x66,0x74,0x18,0x03,0x20,0x01,0x28,
0x0b,0x32,0x20,0x2e,0x77,0x70,0x69,0x2e,0x70,0x72,
0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,0x6f,0x62,
0x75,0x66,0x54,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,
0x69,0x6f,0x6e,0x32,0x64,0x52,0x08,0x72,0x65,0x61,
0x72,0x4c,0x65,0x66,0x74,0x12,0x3f,0x0a,0x0a,0x72,
0x65,0x61,0x72,0x5f,0x72,0x69,0x67,0x68,0x74,0x18,
0x04,0x20,0x01,0x28,0x0b,0x32,0x20,0x2e,0x77,0x70,
0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,
0x6f,0x74,0x6f,0x62,0x75,0x66,0x54,0x72,0x61,0x6e,
0x73,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x32,0x64,0x52,
0x09,0x72,0x65,0x61,0x72,0x52,0x69,0x67,0x68,0x74,
0x22,0x9f,0x01,0x0a,0x21,0x50,0x72,0x6f,0x74,0x6f,
0x62,0x75,0x66,0x4d,0x65,0x63,0x61,0x6e,0x75,0x6d,
0x44,0x72,0x69,0x76,0x65,0x4d,0x6f,0x74,0x6f,0x72,
0x56,0x6f,0x6c,0x74,0x61,0x67,0x65,0x73,0x12,0x1d,
0x0a,0x0a,0x66,0x72,0x6f,0x6e,0x74,0x5f,0x6c,0x65,
0x66,0x74,0x18,0x01,0x20,0x01,0x28,0x01,0x52,0x09,
0x66,0x72,0x6f,0x6e,0x74,0x4c,0x65,0x66,0x74,0x12,
0x1f,0x0a,0x0b,0x66,0x72,0x6f,0x6e,0x74,0x5f,0x72,
0x69,0x67,0x68,0x74,0x18,0x02,0x20,0x01,0x28,0x01,
0x52,0x0a,0x66,0x72,0x6f,0x6e,0x74,0x52,0x69,0x67,
0x68,0x74,0x12,0x1b,0x0a,0x09,0x72,0x65,0x61,0x72,
0x5f,0x6c,0x65,0x66,0x74,0x18,0x03,0x20,0x01,0x28,
0x01,0x52,0x08,0x72,0x65,0x61,0x72,0x4c,0x65,0x66,
0x74,0x12,0x1d,0x0a,0x0a,0x72,0x65,0x61,0x72,0x5f,
0x72,0x69,0x67,0x68,0x74,0x18,0x04,0x20,0x01,0x28,
0x01,0x52,0x09,0x72,0x65,0x61,0x72,0x52,0x69,0x67,
0x68,0x74,0x22,0xa0,0x01,0x0a,0x22,0x50,0x72,0x6f,
0x74,0x6f,0x62,0x75,0x66,0x4d,0x65,0x63,0x61,0x6e,
0x75,0x6d,0x44,0x72,0x69,0x76,0x65,0x57,0x68,0x65,
0x65,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,
0x73,0x12,0x1d,0x0a,0x0a,0x66,0x72,0x6f,0x6e,0x74,
0x5f,0x6c,0x65,0x66,0x74,0x18,0x01,0x20,0x01,0x28,
0x01,0x52,0x09,0x66,0x72,0x6f,0x6e,0x74,0x4c,0x65,
0x66,0x74,0x12,0x1f,0x0a,0x0b,0x66,0x72,0x6f,0x6e,
0x74,0x5f,0x72,0x69,0x67,0x68,0x74,0x18,0x02,0x20,
0x01,0x28,0x01,0x52,0x0a,0x66,0x72,0x6f,0x6e,0x74,
0x52,0x69,0x67,0x68,0x74,0x12,0x1b,0x0a,0x09,0x72,
0x65,0x61,0x72,0x5f,0x6c,0x65,0x66,0x74,0x18,0x03,
0x20,0x01,0x28,0x01,0x52,0x08,0x72,0x65,0x61,0x72,
0x4c,0x65,0x66,0x74,0x12,0x1d,0x0a,0x0a,0x72,0x65,
0x61,0x72,0x5f,0x72,0x69,0x67,0x68,0x74,0x18,0x04,
0x20,0x01,0x28,0x01,0x52,0x09,0x72,0x65,0x61,0x72,
0x52,0x69,0x67,0x68,0x74,0x22,0x9d,0x01,0x0a,0x1f,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x4d,0x65,
0x63,0x61,0x6e,0x75,0x6d,0x44,0x72,0x69,0x76,0x65,
0x57,0x68,0x65,0x65,0x6c,0x53,0x70,0x65,0x65,0x64,
0x73,0x12,0x1d,0x0a,0x0a,0x66,0x72,0x6f,0x6e,0x74,
0x5f,0x6c,0x65,0x66,0x74,0x18,0x01,0x20,0x01,0x28,
0x01,0x52,0x09,0x66,0x72,0x6f,0x6e,0x74,0x4c,0x65,
0x66,0x74,0x12,0x1f,0x0a,0x0b,0x66,0x72,0x6f,0x6e,
0x74,0x5f,0x72,0x69,0x67,0x68,0x74,0x18,0x02,0x20,
0x01,0x28,0x01,0x52,0x0a,0x66,0x72,0x6f,0x6e,0x74,
0x52,0x69,0x67,0x68,0x74,0x12,0x1b,0x0a,0x09,0x72,
0x65,0x61,0x72,0x5f,0x6c,0x65,0x66,0x74,0x18,0x03,
0x20,0x01,0x28,0x01,0x52,0x08,0x72,0x65,0x61,0x72,
0x4c,0x65,0x66,0x74,0x12,0x1d,0x0a,0x0a,0x72,0x65,
0x61,0x72,0x5f,0x72,0x69,0x67,0x68,0x74,0x18,0x04,
0x20,0x01,0x28,0x01,0x52,0x09,0x72,0x65,0x61,0x72,
0x52,0x69,0x67,0x68,0x74,0x22,0x5b,0x0a,0x1d,0x50,
0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x53,0x77,0x65,
0x72,0x76,0x65,0x44,0x72,0x69,0x76,0x65,0x4b,0x69,
0x6e,0x65,0x6d,0x61,0x74,0x69,0x63,0x73,0x12,0x3a,
0x0a,0x07,0x6d,0x6f,0x64,0x75,0x6c,0x65,0x73,0x18,
0x01,0x20,0x03,0x28,0x0b,0x32,0x20,0x2e,0x77,0x70,
0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,
0x6f,0x74,0x6f,0x62,0x75,0x66,0x54,0x72,0x61,0x6e,
0x73,0x6c,0x61,0x74,0x69,0x6f,0x6e,0x32,0x64,0x52,
0x07,0x6d,0x6f,0x64,0x75,0x6c,0x65,0x73,0x22,0x6f,
0x0a,0x1c,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,
0x53,0x77,0x65,0x72,0x76,0x65,0x4d,0x6f,0x64,0x75,
0x6c,0x65,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,
0x12,0x1a,0x0a,0x08,0x64,0x69,0x73,0x74,0x61,0x6e,
0x63,0x65,0x18,0x01,0x20,0x01,0x28,0x01,0x52,0x08,
0x64,0x69,0x73,0x74,0x61,0x6e,0x63,0x65,0x12,0x33,
0x0a,0x05,0x61,0x6e,0x67,0x6c,0x65,0x18,0x02,0x20,
0x01,0x28,0x0b,0x32,0x1d,0x2e,0x77,0x70,0x69,0x2e,
0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,
0x6f,0x62,0x75,0x66,0x52,0x6f,0x74,0x61,0x74,0x69,
0x6f,0x6e,0x32,0x64,0x52,0x05,0x61,0x6e,0x67,0x6c,
0x65,0x22,0x66,0x0a,0x19,0x50,0x72,0x6f,0x74,0x6f,
0x62,0x75,0x66,0x53,0x77,0x65,0x72,0x76,0x65,0x4d,
0x6f,0x64,0x75,0x6c,0x65,0x53,0x74,0x61,0x74,0x65,
0x12,0x14,0x0a,0x05,0x73,0x70,0x65,0x65,0x64,0x18,
0x01,0x20,0x01,0x28,0x01,0x52,0x05,0x73,0x70,0x65,
0x65,0x64,0x12,0x33,0x0a,0x05,0x61,0x6e,0x67,0x6c,
0x65,0x18,0x02,0x20,0x01,0x28,0x0b,0x32,0x1d,0x2e,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x52,0x6f,
0x74,0x61,0x74,0x69,0x6f,0x6e,0x32,0x64,0x52,0x05,
0x61,0x6e,0x67,0x6c,0x65,0x42,0x1a,0x0a,0x18,0x65,
0x64,0x75,0x2e,0x77,0x70,0x69,0x2e,0x66,0x69,0x72,
0x73,0x74,0x2e,0x6d,0x61,0x74,0x68,0x2e,0x70,0x72,
0x6f,0x74,0x6f,0x4a,0x8d,0x0f,0x0a,0x06,0x12,0x04,
0x00,0x00,0x44,0x01,0x0a,0x08,0x0a,0x01,0x0c,0x12,
0x03,0x00,0x00,0x12,0x0a,0x08,0x0a,0x01,0x02,0x12,
0x03,0x02,0x00,0x12,0x0a,0x09,0x0a,0x02,0x03,0x00,
0x12,0x03,0x04,0x00,0x1a,0x0a,0x08,0x0a,0x01,0x08,
0x12,0x03,0x06,0x00,0x31,0x0a,0x09,0x0a,0x02,0x08,
0x01,0x12,0x03,0x06,0x00,0x31,0x0a,0x0a,0x0a,0x02,
0x04,0x00,0x12,0x04,0x08,0x00,0x0c,0x01,0x0a,0x0a,
0x0a,0x03,0x04,0x00,0x01,0x12,0x03,0x08,0x08,0x1d,
0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,0x00,0x12,0x03,
0x09,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x00,0x05,0x12,0x03,0x09,0x02,0x08,0x0a,0x0c,0x0a,
0x05,0x04,0x00,0x02,0x00,0x01,0x12,0x03,0x09,0x09,
0x0b,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,0x03,
0x12,0x03,0x09,0x0e,0x0f,0x0a,0x0b,0x0a,0x04,0x04,
0x00,0x02,0x01,0x12,0x03,0x0a,0x02,0x10,0x0a,0x0c,
0x0a,0x05,0x04,0x00,0x02,0x01,0x05,0x12,0x03,0x0a,
0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,
0x01,0x12,0x03,0x0a,0x09,0x0b,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x01,0x03,0x12,0x03,0x0a,0x0e,0x0f,
0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,0x02,0x12,0x03,
0x0b,0x02,0x13,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x02,0x05,0x12,0x03,0x0b,0x02,0x08,0x0a,0x0c,0x0a,
0x05,0x04,0x00,0x02,0x02,0x01,0x12,0x03,0x0b,0x09,
0x0e,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,0x03,
0x12,0x03,0x0b,0x11,0x12,0x0a,0x0a,0x0a,0x02,0x04,
0x01,0x12,0x04,0x0e,0x00,0x10,0x01,0x0a,0x0a,0x0a,
0x03,0x04,0x01,0x01,0x12,0x03,0x0e,0x08,0x2b,0x0a,
0x0b,0x0a,0x04,0x04,0x01,0x02,0x00,0x12,0x03,0x0f,
0x02,0x19,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x00,
0x05,0x12,0x03,0x0f,0x02,0x08,0x0a,0x0c,0x0a,0x05,
0x04,0x01,0x02,0x00,0x01,0x12,0x03,0x0f,0x09,0x14,
0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x00,0x03,0x12,
0x03,0x0f,0x17,0x18,0x0a,0x0a,0x0a,0x02,0x04,0x02,
0x12,0x04,0x12,0x00,0x15,0x01,0x0a,0x0a,0x0a,0x03,
0x04,0x02,0x01,0x12,0x03,0x12,0x08,0x2c,0x0a,0x0b,
0x0a,0x04,0x04,0x02,0x02,0x00,0x12,0x03,0x13,0x02,
0x12,0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,0x00,0x05,
0x12,0x03,0x13,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,
0x02,0x02,0x00,0x01,0x12,0x03,0x13,0x09,0x0d,0x0a,
0x0c,0x0a,0x05,0x04,0x02,0x02,0x00,0x03,0x12,0x03,
0x13,0x10,0x11,0x0a,0x0b,0x0a,0x04,0x04,0x02,0x02,
0x01,0x12,0x03,0x14,0x02,0x13,0x0a,0x0c,0x0a,0x05,
0x04,0x02,0x02,0x01,0x05,0x12,0x03,0x14,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x02,0x02,0x01,0x01,0x12,
0x03,0x14,0x09,0x0e,0x0a,0x0c,0x0a,0x05,0x04,0x02,
0x02,0x01,0x03,0x12,0x03,0x14,0x11,0x12,0x0a,0x0a,
0x0a,0x02,0x04,0x03,0x12,0x04,0x17,0x00,0x1a,0x01,
0x0a,0x0a,0x0a,0x03,0x04,0x03,0x01,0x12,0x03,0x17,
0x08,0x2f,0x0a,0x0b,0x0a,0x04,0x04,0x03,0x02,0x00,
0x12,0x03,0x18,0x02,0x12,0x0a,0x0c,0x0a,0x05,0x04,
0x03,0x02,0x00,0x05,0x12,0x03,0x18,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x03,0x02,0x00,0x01,0x12,0x03,
0x18,0x09,0x0d,0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,
0x00,0x03,0x12,0x03,0x18,0x10,0x11,0x0a,0x0b,0x0a,
0x04,0x04,0x03,0x02,0x01,0x12,0x03,0x19,0x02,0x13,
0x0a,0x0c,0x0a,0x05,0x04,0x03,0x02,0x01,0x05,0x12,
0x03,0x19,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x03,
0x02,0x01,0x01,0x12,0x03,0x19,0x09,0x0e,0x0a,0x0c,
0x0a,0x05,0x04,0x03,0x02,0x01,0x03,0x12,0x03,0x19,
0x11,0x12,0x0a,0x0a,0x0a,0x02,0x04,0x04,0x12,0x04,
0x1c,0x00,0x21,0x01,0x0a,0x0a,0x0a,0x03,0x04,0x04,
0x01,0x12,0x03,0x1c,0x08,0x26,0x0a,0x0b,0x0a,0x04,
0x04,0x04,0x02,0x00,0x12,0x03,0x1d,0x02,0x27,0x0a,
0x0c,0x0a,0x05,0x04,0x04,0x02,0x00,0x06,0x12,0x03,
0x1d,0x02,0x17,0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,
0x00,0x01,0x12,0x03,0x1d,0x18,0x22,0x0a,0x0c,0x0a,
0x05,0x04,0x04,0x02,0x00,0x03,0x12,0x03,0x1d,0x25,
0x26,0x0a,0x0b,0x0a,0x04,0x04,0x04,0x02,0x01,0x12,
0x03,0x1e,0x02,0x28,0x0a,0x0c,0x0a,0x05,0x04,0x04,
0x02,0x01,0x06,0x12,0x03,0x1e,0x02,0x17,0x0a,0x0c,
0x0a,0x05,0x04,0x04,0x02,0x01,0x01,0x12,0x03,0x1e,
0x18,0x23,0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x01,
0x03,0x12,0x03,0x1e,0x26,0x27,0x0a,0x0b,0x0a,0x04,
0x04,0x04,0x02,0x02,0x12,0x03,0x1f,0x02,0x26,0x0a,
0x0c,0x0a,0x05,0x04,0x04,0x02,0x02,0x06,0x12,0x03,
0x1f,0x02,0x17,0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,
0x02,0x01,0x12,0x03,0x1f,0x18,0x21,0x0a,0x0c,0x0a,
0x05,0x04,0x04,0x02,0x02,0x03,0x12,0x03,0x1f,0x24,
0x25,0x0a,0x0b,0x0a,0x04,0x04,0x04,0x02,0x03,0x12,
0x03,0x20,0x02,0x27,0x0a,0x0c,0x0a,0x05,0x04,0x04,
0x02,0x03,0x06,0x12,0x03,0x20,0x02,0x17,0x0a,0x0c,
0x0a,0x05,0x04,0x04,0x02,0x03,0x01,0x12,0x03,0x20,
0x18,0x22,0x0a,0x0c,0x0a,0x05,0x04,0x04,0x02,0x03,
0x03,0x12,0x03,0x20,0x25,0x26,0x0a,0x0a,0x0a,0x02,
0x04,0x05,0x12,0x04,0x23,0x00,0x28,0x01,0x0a,0x0a,
0x0a,0x03,0x04,0x05,0x01,0x12,0x03,0x23,0x08,0x29,
0x0a,0x0b,0x0a,0x04,0x04,0x05,0x02,0x00,0x12,0x03,
0x24,0x02,0x18,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,
0x00,0x05,0x12,0x03,0x24,0x02,0x08,0x0a,0x0c,0x0a,
0x05,0x04,0x05,0x02,0x00,0x01,0x12,0x03,0x24,0x09,
0x13,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,0x00,0x03,
0x12,0x03,0x24,0x16,0x17,0x0a,0x0b,0x0a,0x04,0x04,
0x05,0x02,0x01,0x12,0x03,0x25,0x02,0x19,0x0a,0x0c,
0x0a,0x05,0x04,0x05,0x02,0x01,0x05,0x12,0x03,0x25,
0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,0x01,
0x01,0x12,0x03,0x25,0x09,0x14,0x0a,0x0c,0x0a,0x05,
0x04,0x05,0x02,0x01,0x03,0x12,0x03,0x25,0x17,0x18,
0x0a,0x0b,0x0a,0x04,0x04,0x05,0x02,0x02,0x12,0x03,
0x26,0x02,0x17,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,
0x02,0x05,0x12,0x03,0x26,0x02,0x08,0x0a,0x0c,0x0a,
0x05,0x04,0x05,0x02,0x02,0x01,0x12,0x03,0x26,0x09,
0x12,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,0x02,0x03,
0x12,0x03,0x26,0x15,0x16,0x0a,0x0b,0x0a,0x04,0x04,
0x05,0x02,0x03,0x12,0x03,0x27,0x02,0x18,0x0a,0x0c,
0x0a,0x05,0x04,0x05,0x02,0x03,0x05,0x12,0x03,0x27,
0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x05,0x02,0x03,
0x01,0x12,0x03,0x27,0x09,0x13,0x0a,0x0c,0x0a,0x05,
0x04,0x05,0x02,0x03,0x03,0x12,0x03,0x27,0x16,0x17,
0x0a,0x0a,0x0a,0x02,0x04,0x06,0x12,0x04,0x2a,0x00,
0x2f,0x01,0x0a,0x0a,0x0a,0x03,0x04,0x06,0x01,0x12,
0x03,0x2a,0x08,0x2a,0x0a,0x0b,0x0a,0x04,0x04,0x06,
0x02,0x00,0x12,0x03,0x2b,0x02,0x18,0x0a,0x0c,0x0a,
0x05,0x04,0x06,0x02,0x00,0x05,0x12,0x03,0x2b,0x02,
0x08,0x0a,0x0c,0x0a,0x05,0x04,0x06,0x02,0x00,0x01,
0x12,0x03,0x2b,0x09,0x13,0x0a,0x0c,0x0a,0x05,0x04,
0x06,0x02,0x00,0x03,0x12,0x03,0x2b,0x16,0x17,0x0a,
0x0b,0x0a,0x04,0x04,0x06,0x02,0x01,0x12,0x03,0x2c,
0x02,0x19,0x0a,0x0c,0x0a,0x05,0x04,0x06,0x02,0x01,
0x05,0x12,0x03,0x2c,0x02,0x08,0x0a,0x0c,0x0a,0x05,
0x04,0x06,0x02,0x01,0x01,0x12,0x03,0x2c,0x09,0x14,
0x0a,0x0c,0x0a,0x05,0x04,0x06,0x02,0x01,0x03,0x12,
0x03,0x2c,0x17,0x18,0x0a,0x0b,0x0a,0x04,0x04,0x06,
0x02,0x02,0x12,0x03,0x2d,0x02,0x17,0x0a,0x0c,0x0a,
0x05,0x04,0x06,0x02,0x02,0x05,0x12,0x03,0x2d,0x02,
0x08,0x0a,0x0c,0x0a,0x05,0x04,0x06,0x02,0x02,0x01,
0x12,0x03,0x2d,0x09,0x12,0x0a,0x0c,0x0a,0x05,0x04,
0x06,0x02,0x02,0x03,0x12,0x03,0x2d,0x15,0x16,0x0a,
0x0b,0x0a,0x04,0x04,0x06,0x02,0x03,0x12,0x03,0x2e,
0x02,0x18,0x0a,0x0c,0x0a,0x05,0x04,0x06,0x02,0x03,
0x05,0x12,0x03,0x2e,0x02,0x08,0x0a,0x0c,0x0a,0x05,
0x04,0x06,0x02,0x03,0x01,0x12,0x03,0x2e,0x09,0x13,
0x0a,0x0c,0x0a,0x05,0x04,0x06,0x02,0x03,0x03,0x12,
0x03,0x2e,0x16,0x17,0x0a,0x0a,0x0a,0x02,0x04,0x07,
0x12,0x04,0x31,0x00,0x36,0x01,0x0a,0x0a,0x0a,0x03,
0x04,0x07,0x01,0x12,0x03,0x31,0x08,0x27,0x0a,0x0b,
0x0a,0x04,0x04,0x07,0x02,0x00,0x12,0x03,0x32,0x02,
0x18,0x0a,0x0c,0x0a,0x05,0x04,0x07,0x02,0x00,0x05,
0x12,0x03,0x32,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,
0x07,0x02,0x00,0x01,0x12,0x03,0x32,0x09,0x13,0x0a,
0x0c,0x0a,0x05,0x04,0x07,0x02,0x00,0x03,0x12,0x03,
0x32,0x16,0x17,0x0a,0x0b,0x0a,0x04,0x04,0x07,0x02,
0x01,0x12,0x03,0x33,0x02,0x19,0x0a,0x0c,0x0a,0x05,
0x04,0x07,0x02,0x01,0x05,0x12,0x03,0x33,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x07,0x02,0x01,0x01,0x12,
0x03,0x33,0x09,0x14,0x0a,0x0c,0x0a,0x05,0x04,0x07,
0x02,0x01,0x03,0x12,0x03,0x33,0x17,0x18,0x0a,0x0b,
0x0a,0x04,0x04,0x07,0x02,0x02,0x12,0x03,0x34,0x02,
0x17,0x0a,0x0c,0x0a,0x05,0x04,0x07,0x02,0x02,0x05,
0x12,0x03,0x34,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,
0x07,0x02,0x02,0x01,0x12,0x03,0x34,0x09,0x12,0x0a,
0x0c,0x0a,0x05,0x04,0x07,0x02,0x02,0x03,0x12,0x03,
0x34,0x15,0x16,0x0a,0x0b,0x0a,0x04,0x04,0x07,0x02,
0x03,0x12,0x03,0x35,0x02,0x18,0x0a,0x0c,0x0a,0x05,
0x04,0x07,0x02,0x03,0x05,0x12,0x03,0x35,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x07,0x02,0x03,0x01,0x12,
0x03,0x35,0x09,0x13,0x0a,0x0c,0x0a,0x05,0x04,0x07,
0x02,0x03,0x03,0x12,0x03,0x35,0x16,0x17,0x0a,0x0a,
0x0a,0x02,0x04,0x08,0x12,0x04,0x38,0x00,0x3a,0x01,
0x0a,0x0a,0x0a,0x03,0x04,0x08,0x01,0x12,0x03,0x38,
0x08,0x25,0x0a,0x0b,0x0a,0x04,0x04,0x08,0x02,0x00,
0x12,0x03,0x39,0x02,0x2d,0x0a,0x0c,0x0a,0x05,0x04,
0x08,0x02,0x00,0x04,0x12,0x03,0x39,0x02,0x0a,0x0a,
0x0c,0x0a,0x05,0x04,0x08,0x02,0x00,0x06,0x12,0x03,
0x39,0x0b,0x20,0x0a,0x0c,0x0a,0x05,0x04,0x08,0x02,
0x00,0x01,0x12,0x03,0x39,0x21,0x28,0x0a,0x0c,0x0a,
0x05,0x04,0x08,0x02,0x00,0x03,0x12,0x03,0x39,0x2b,
0x2c,0x0a,0x0a,0x0a,0x02,0x04,0x09,0x12,0x04,0x3c,
0x00,0x3f,0x01,0x0a,0x0a,0x0a,0x03,0x04,0x09,0x01,
0x12,0x03,0x3c,0x08,0x24,0x0a,0x0b,0x0a,0x04,0x04,
0x09,0x02,0x00,0x12,0x03,0x3d,0x02,0x16,0x0a,0x0c,
0x0a,0x05,0x04,0x09,0x02,0x00,0x05,0x12,0x03,0x3d,
0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x09,0x02,0x00,
0x01,0x12,0x03,0x3d,0x09,0x11,0x0a,0x0c,0x0a,0x05,
0x04,0x09,0x02,0x00,0x03,0x12,0x03,0x3d,0x14,0x15,
0x0a,0x0b,0x0a,0x04,0x04,0x09,0x02,0x01,0x12,0x03,
0x3e,0x02,0x1f,0x0a,0x0c,0x0a,0x05,0x04,0x09,0x02,
0x01,0x06,0x12,0x03,0x3e,0x02,0x14,0x0a,0x0c,0x0a,
0x05,0x04,0x09,0x02,0x01,0x01,0x12,0x03,0x3e,0x15,
0x1a,0x0a,0x0c,0x0a,0x05,0x04,0x09,0x02,0x01,0x03,
0x12,0x03,0x3e,0x1d,0x1e,0x0a,0x0a,0x0a,0x02,0x04,
0x0a,0x12,0x04,0x41,0x00,0x44,0x01,0x0a,0x0a,0x0a,
0x03,0x04,0x0a,0x01,0x12,0x03,0x41,0x08,0x21,0x0a,
0x0b,0x0a,0x04,0x04,0x0a,0x02,0x00,0x12,0x03,0x42,
0x02,0x13,0x0a,0x0c,0x0a,0x05,0x04,0x0a,0x02,0x00,
0x05,0x12,0x03,0x42,0x02,0x08,0x0a,0x0c,0x0a,0x05,
0x04,0x0a,0x02,0x00,0x01,0x12,0x03,0x42,0x09,0x0e,
0x0a,0x0c,0x0a,0x05,0x04,0x0a,0x02,0x00,0x03,0x12,
0x03,0x42,0x11,0x12,0x0a,0x0b,0x0a,0x04,0x04,0x0a,
0x02,0x01,0x12,0x03,0x43,0x02,0x1f,0x0a,0x0c,0x0a,
0x05,0x04,0x0a,0x02,0x01,0x06,0x12,0x03,0x43,0x02,
0x14,0x0a,0x0c,0x0a,0x05,0x04,0x0a,0x02,0x01,0x01,
0x12,0x03,0x43,0x15,0x1a,0x0a,0x0c,0x0a,0x05,0x04,
0x0a,0x02,0x01,0x03,0x12,0x03,0x43,0x1d,0x1e,0x62,
0x06,0x70,0x72,0x6f,0x74,0x6f,0x33,
};
static const char file_name[] = "kinematics.proto";
static const char wpi_proto_ProtobufChassisSpeeds_name[] = "wpi.proto.ProtobufChassisSpeeds";
std::string_view wpi_proto_ProtobufChassisSpeeds::msg_name(void) noexcept { return wpi_proto_ProtobufChassisSpeeds_name; }
pb_filedesc_t wpi_proto_ProtobufChassisSpeeds::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufChassisSpeeds, wpi_proto_ProtobufChassisSpeeds, AUTO)
static const char wpi_proto_ProtobufDifferentialDriveKinematics_name[] = "wpi.proto.ProtobufDifferentialDriveKinematics";
std::string_view wpi_proto_ProtobufDifferentialDriveKinematics::msg_name(void) noexcept { return wpi_proto_ProtobufDifferentialDriveKinematics_name; }
pb_filedesc_t wpi_proto_ProtobufDifferentialDriveKinematics::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufDifferentialDriveKinematics, wpi_proto_ProtobufDifferentialDriveKinematics, AUTO)
static const char wpi_proto_ProtobufDifferentialDriveWheelSpeeds_name[] = "wpi.proto.ProtobufDifferentialDriveWheelSpeeds";
std::string_view wpi_proto_ProtobufDifferentialDriveWheelSpeeds::msg_name(void) noexcept { return wpi_proto_ProtobufDifferentialDriveWheelSpeeds_name; }
pb_filedesc_t wpi_proto_ProtobufDifferentialDriveWheelSpeeds::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufDifferentialDriveWheelSpeeds, wpi_proto_ProtobufDifferentialDriveWheelSpeeds, AUTO)
static const char wpi_proto_ProtobufDifferentialDriveWheelPositions_name[] = "wpi.proto.ProtobufDifferentialDriveWheelPositions";
std::string_view wpi_proto_ProtobufDifferentialDriveWheelPositions::msg_name(void) noexcept { return wpi_proto_ProtobufDifferentialDriveWheelPositions_name; }
pb_filedesc_t wpi_proto_ProtobufDifferentialDriveWheelPositions::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufDifferentialDriveWheelPositions, wpi_proto_ProtobufDifferentialDriveWheelPositions, AUTO)
static const char wpi_proto_ProtobufMecanumDriveKinematics_name[] = "wpi.proto.ProtobufMecanumDriveKinematics";
std::string_view wpi_proto_ProtobufMecanumDriveKinematics::msg_name(void) noexcept { return wpi_proto_ProtobufMecanumDriveKinematics_name; }
pb_filedesc_t wpi_proto_ProtobufMecanumDriveKinematics::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufMecanumDriveKinematics, wpi_proto_ProtobufMecanumDriveKinematics, AUTO)
static const char wpi_proto_ProtobufMecanumDriveMotorVoltages_name[] = "wpi.proto.ProtobufMecanumDriveMotorVoltages";
std::string_view wpi_proto_ProtobufMecanumDriveMotorVoltages::msg_name(void) noexcept { return wpi_proto_ProtobufMecanumDriveMotorVoltages_name; }
pb_filedesc_t wpi_proto_ProtobufMecanumDriveMotorVoltages::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufMecanumDriveMotorVoltages, wpi_proto_ProtobufMecanumDriveMotorVoltages, AUTO)
static const char wpi_proto_ProtobufMecanumDriveWheelPositions_name[] = "wpi.proto.ProtobufMecanumDriveWheelPositions";
std::string_view wpi_proto_ProtobufMecanumDriveWheelPositions::msg_name(void) noexcept { return wpi_proto_ProtobufMecanumDriveWheelPositions_name; }
pb_filedesc_t wpi_proto_ProtobufMecanumDriveWheelPositions::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufMecanumDriveWheelPositions, wpi_proto_ProtobufMecanumDriveWheelPositions, AUTO)
static const char wpi_proto_ProtobufMecanumDriveWheelSpeeds_name[] = "wpi.proto.ProtobufMecanumDriveWheelSpeeds";
std::string_view wpi_proto_ProtobufMecanumDriveWheelSpeeds::msg_name(void) noexcept { return wpi_proto_ProtobufMecanumDriveWheelSpeeds_name; }
pb_filedesc_t wpi_proto_ProtobufMecanumDriveWheelSpeeds::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufMecanumDriveWheelSpeeds, wpi_proto_ProtobufMecanumDriveWheelSpeeds, AUTO)
static const char wpi_proto_ProtobufSwerveDriveKinematics_name[] = "wpi.proto.ProtobufSwerveDriveKinematics";
std::string_view wpi_proto_ProtobufSwerveDriveKinematics::msg_name(void) noexcept { return wpi_proto_ProtobufSwerveDriveKinematics_name; }
pb_filedesc_t wpi_proto_ProtobufSwerveDriveKinematics::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufSwerveDriveKinematics, wpi_proto_ProtobufSwerveDriveKinematics, AUTO)
static const char wpi_proto_ProtobufSwerveModulePosition_name[] = "wpi.proto.ProtobufSwerveModulePosition";
std::string_view wpi_proto_ProtobufSwerveModulePosition::msg_name(void) noexcept { return wpi_proto_ProtobufSwerveModulePosition_name; }
pb_filedesc_t wpi_proto_ProtobufSwerveModulePosition::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufSwerveModulePosition, wpi_proto_ProtobufSwerveModulePosition, AUTO)
static const char wpi_proto_ProtobufSwerveModuleState_name[] = "wpi.proto.ProtobufSwerveModuleState";
std::string_view wpi_proto_ProtobufSwerveModuleState::msg_name(void) noexcept { return wpi_proto_ProtobufSwerveModuleState_name; }
pb_filedesc_t wpi_proto_ProtobufSwerveModuleState::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufSwerveModuleState, wpi_proto_ProtobufSwerveModuleState, AUTO)
#ifndef PB_CONVERT_DOUBLE_FLOAT
/* On some platforms (such as AVR), double is really float.
* To be able to encode/decode double on these platforms, you need.
* to define PB_CONVERT_DOUBLE_FLOAT in pb.h or compiler command line.
*/
PB_STATIC_ASSERT(sizeof(double) == 8, DOUBLE_MUST_BE_8_BYTES)
#endif

View File

@@ -0,0 +1,277 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */
#ifndef PB_WPI_PROTO_KINEMATICS_NPB_H_INCLUDED
#define PB_WPI_PROTO_KINEMATICS_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>
#include "geometry2d.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
typedef struct _wpi_proto_ProtobufChassisSpeeds {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double vx;
double vy;
double omega;
} wpi_proto_ProtobufChassisSpeeds;
typedef struct _wpi_proto_ProtobufDifferentialDriveKinematics {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double track_width;
} wpi_proto_ProtobufDifferentialDriveKinematics;
typedef struct _wpi_proto_ProtobufDifferentialDriveWheelSpeeds {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double left;
double right;
} wpi_proto_ProtobufDifferentialDriveWheelSpeeds;
typedef struct _wpi_proto_ProtobufDifferentialDriveWheelPositions {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double left;
double right;
} wpi_proto_ProtobufDifferentialDriveWheelPositions;
typedef struct _wpi_proto_ProtobufMecanumDriveKinematics {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t front_left;
pb_callback_t front_right;
pb_callback_t rear_left;
pb_callback_t rear_right;
} wpi_proto_ProtobufMecanumDriveKinematics;
typedef struct _wpi_proto_ProtobufMecanumDriveMotorVoltages {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double front_left;
double front_right;
double rear_left;
double rear_right;
} wpi_proto_ProtobufMecanumDriveMotorVoltages;
typedef struct _wpi_proto_ProtobufMecanumDriveWheelPositions {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double front_left;
double front_right;
double rear_left;
double rear_right;
} wpi_proto_ProtobufMecanumDriveWheelPositions;
typedef struct _wpi_proto_ProtobufMecanumDriveWheelSpeeds {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double front_left;
double front_right;
double rear_left;
double rear_right;
} wpi_proto_ProtobufMecanumDriveWheelSpeeds;
typedef struct _wpi_proto_ProtobufSwerveDriveKinematics {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t modules;
} wpi_proto_ProtobufSwerveDriveKinematics;
typedef struct _wpi_proto_ProtobufSwerveModulePosition {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double distance;
pb_callback_t angle;
} wpi_proto_ProtobufSwerveModulePosition;
typedef struct _wpi_proto_ProtobufSwerveModuleState {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double speed;
pb_callback_t angle;
} wpi_proto_ProtobufSwerveModuleState;
/* Initializer values for message structs */
#define wpi_proto_ProtobufChassisSpeeds_init_default {0, 0, 0}
#define wpi_proto_ProtobufDifferentialDriveKinematics_init_default {0}
#define wpi_proto_ProtobufDifferentialDriveWheelSpeeds_init_default {0, 0}
#define wpi_proto_ProtobufDifferentialDriveWheelPositions_init_default {0, 0}
#define wpi_proto_ProtobufMecanumDriveKinematics_init_default {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_init_default {0, 0, 0, 0}
#define wpi_proto_ProtobufMecanumDriveWheelPositions_init_default {0, 0, 0, 0}
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_init_default {0, 0, 0, 0}
#define wpi_proto_ProtobufSwerveDriveKinematics_init_default {{{NULL}, NULL}}
#define wpi_proto_ProtobufSwerveModulePosition_init_default {0, {{NULL}, NULL}}
#define wpi_proto_ProtobufSwerveModuleState_init_default {0, {{NULL}, NULL}}
#define wpi_proto_ProtobufChassisSpeeds_init_zero {0, 0, 0}
#define wpi_proto_ProtobufDifferentialDriveKinematics_init_zero {0}
#define wpi_proto_ProtobufDifferentialDriveWheelSpeeds_init_zero {0, 0}
#define wpi_proto_ProtobufDifferentialDriveWheelPositions_init_zero {0, 0}
#define wpi_proto_ProtobufMecanumDriveKinematics_init_zero {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_init_zero {0, 0, 0, 0}
#define wpi_proto_ProtobufMecanumDriveWheelPositions_init_zero {0, 0, 0, 0}
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_init_zero {0, 0, 0, 0}
#define wpi_proto_ProtobufSwerveDriveKinematics_init_zero {{{NULL}, NULL}}
#define wpi_proto_ProtobufSwerveModulePosition_init_zero {0, {{NULL}, NULL}}
#define wpi_proto_ProtobufSwerveModuleState_init_zero {0, {{NULL}, NULL}}
/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufChassisSpeeds_vx_tag 1
#define wpi_proto_ProtobufChassisSpeeds_vy_tag 2
#define wpi_proto_ProtobufChassisSpeeds_omega_tag 3
#define wpi_proto_ProtobufDifferentialDriveKinematics_track_width_tag 1
#define wpi_proto_ProtobufDifferentialDriveWheelSpeeds_left_tag 1
#define wpi_proto_ProtobufDifferentialDriveWheelSpeeds_right_tag 2
#define wpi_proto_ProtobufDifferentialDriveWheelPositions_left_tag 1
#define wpi_proto_ProtobufDifferentialDriveWheelPositions_right_tag 2
#define wpi_proto_ProtobufMecanumDriveKinematics_front_left_tag 1
#define wpi_proto_ProtobufMecanumDriveKinematics_front_right_tag 2
#define wpi_proto_ProtobufMecanumDriveKinematics_rear_left_tag 3
#define wpi_proto_ProtobufMecanumDriveKinematics_rear_right_tag 4
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_front_left_tag 1
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_front_right_tag 2
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_rear_left_tag 3
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_rear_right_tag 4
#define wpi_proto_ProtobufMecanumDriveWheelPositions_front_left_tag 1
#define wpi_proto_ProtobufMecanumDriveWheelPositions_front_right_tag 2
#define wpi_proto_ProtobufMecanumDriveWheelPositions_rear_left_tag 3
#define wpi_proto_ProtobufMecanumDriveWheelPositions_rear_right_tag 4
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_front_left_tag 1
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_front_right_tag 2
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_rear_left_tag 3
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_rear_right_tag 4
#define wpi_proto_ProtobufSwerveDriveKinematics_modules_tag 1
#define wpi_proto_ProtobufSwerveModulePosition_distance_tag 1
#define wpi_proto_ProtobufSwerveModulePosition_angle_tag 2
#define wpi_proto_ProtobufSwerveModuleState_speed_tag 1
#define wpi_proto_ProtobufSwerveModuleState_angle_tag 2
/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufChassisSpeeds_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, vx, 1) \
X(a, STATIC, SINGULAR, DOUBLE, vy, 2) \
X(a, STATIC, SINGULAR, DOUBLE, omega, 3)
#define wpi_proto_ProtobufChassisSpeeds_CALLBACK NULL
#define wpi_proto_ProtobufChassisSpeeds_DEFAULT NULL
#define wpi_proto_ProtobufDifferentialDriveKinematics_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, track_width, 1)
#define wpi_proto_ProtobufDifferentialDriveKinematics_CALLBACK NULL
#define wpi_proto_ProtobufDifferentialDriveKinematics_DEFAULT NULL
#define wpi_proto_ProtobufDifferentialDriveWheelSpeeds_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, left, 1) \
X(a, STATIC, SINGULAR, DOUBLE, right, 2)
#define wpi_proto_ProtobufDifferentialDriveWheelSpeeds_CALLBACK NULL
#define wpi_proto_ProtobufDifferentialDriveWheelSpeeds_DEFAULT NULL
#define wpi_proto_ProtobufDifferentialDriveWheelPositions_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, left, 1) \
X(a, STATIC, SINGULAR, DOUBLE, right, 2)
#define wpi_proto_ProtobufDifferentialDriveWheelPositions_CALLBACK NULL
#define wpi_proto_ProtobufDifferentialDriveWheelPositions_DEFAULT NULL
#define wpi_proto_ProtobufMecanumDriveKinematics_FIELDLIST(X, a) \
X(a, CALLBACK, OPTIONAL, MESSAGE, front_left, 1) \
X(a, CALLBACK, OPTIONAL, MESSAGE, front_right, 2) \
X(a, CALLBACK, OPTIONAL, MESSAGE, rear_left, 3) \
X(a, CALLBACK, OPTIONAL, MESSAGE, rear_right, 4)
#define wpi_proto_ProtobufMecanumDriveKinematics_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufMecanumDriveKinematics_DEFAULT NULL
#define wpi_proto_ProtobufMecanumDriveKinematics_front_left_MSGTYPE wpi_proto_ProtobufTranslation2d
#define wpi_proto_ProtobufMecanumDriveKinematics_front_right_MSGTYPE wpi_proto_ProtobufTranslation2d
#define wpi_proto_ProtobufMecanumDriveKinematics_rear_left_MSGTYPE wpi_proto_ProtobufTranslation2d
#define wpi_proto_ProtobufMecanumDriveKinematics_rear_right_MSGTYPE wpi_proto_ProtobufTranslation2d
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, front_left, 1) \
X(a, STATIC, SINGULAR, DOUBLE, front_right, 2) \
X(a, STATIC, SINGULAR, DOUBLE, rear_left, 3) \
X(a, STATIC, SINGULAR, DOUBLE, rear_right, 4)
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_CALLBACK NULL
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_DEFAULT NULL
#define wpi_proto_ProtobufMecanumDriveWheelPositions_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, front_left, 1) \
X(a, STATIC, SINGULAR, DOUBLE, front_right, 2) \
X(a, STATIC, SINGULAR, DOUBLE, rear_left, 3) \
X(a, STATIC, SINGULAR, DOUBLE, rear_right, 4)
#define wpi_proto_ProtobufMecanumDriveWheelPositions_CALLBACK NULL
#define wpi_proto_ProtobufMecanumDriveWheelPositions_DEFAULT NULL
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, front_left, 1) \
X(a, STATIC, SINGULAR, DOUBLE, front_right, 2) \
X(a, STATIC, SINGULAR, DOUBLE, rear_left, 3) \
X(a, STATIC, SINGULAR, DOUBLE, rear_right, 4)
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_CALLBACK NULL
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_DEFAULT NULL
#define wpi_proto_ProtobufSwerveDriveKinematics_FIELDLIST(X, a) \
X(a, CALLBACK, REPEATED, MESSAGE, modules, 1)
#define wpi_proto_ProtobufSwerveDriveKinematics_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufSwerveDriveKinematics_DEFAULT NULL
#define wpi_proto_ProtobufSwerveDriveKinematics_modules_MSGTYPE wpi_proto_ProtobufTranslation2d
#define wpi_proto_ProtobufSwerveModulePosition_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, distance, 1) \
X(a, CALLBACK, OPTIONAL, MESSAGE, angle, 2)
#define wpi_proto_ProtobufSwerveModulePosition_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufSwerveModulePosition_DEFAULT NULL
#define wpi_proto_ProtobufSwerveModulePosition_angle_MSGTYPE wpi_proto_ProtobufRotation2d
#define wpi_proto_ProtobufSwerveModuleState_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, speed, 1) \
X(a, CALLBACK, OPTIONAL, MESSAGE, angle, 2)
#define wpi_proto_ProtobufSwerveModuleState_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufSwerveModuleState_DEFAULT NULL
#define wpi_proto_ProtobufSwerveModuleState_angle_MSGTYPE wpi_proto_ProtobufRotation2d
/* Maximum encoded size of messages (where known) */
/* wpi_proto_ProtobufMecanumDriveKinematics_size depends on runtime parameters */
/* wpi_proto_ProtobufSwerveDriveKinematics_size depends on runtime parameters */
/* wpi_proto_ProtobufSwerveModulePosition_size depends on runtime parameters */
/* wpi_proto_ProtobufSwerveModuleState_size depends on runtime parameters */
#define WPI_PROTO_KINEMATICS_NPB_H_MAX_SIZE wpi_proto_ProtobufMecanumDriveMotorVoltages_size
#define wpi_proto_ProtobufChassisSpeeds_size 27
#define wpi_proto_ProtobufDifferentialDriveKinematics_size 9
#define wpi_proto_ProtobufDifferentialDriveWheelPositions_size 18
#define wpi_proto_ProtobufDifferentialDriveWheelSpeeds_size 18
#define wpi_proto_ProtobufMecanumDriveMotorVoltages_size 36
#define wpi_proto_ProtobufMecanumDriveWheelPositions_size 36
#define wpi_proto_ProtobufMecanumDriveWheelSpeeds_size 36
#endif

View File

@@ -0,0 +1,93 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.9 */
#include "plant.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
#include <span>
#include <string_view>
static const uint8_t file_descriptor[] {
0x0a,0x0b,0x70,0x6c,0x61,0x6e,0x74,0x2e,0x70,0x72,
0x6f,0x74,0x6f,0x12,0x09,0x77,0x70,0x69,0x2e,0x70,
0x72,0x6f,0x74,0x6f,0x22,0xc4,0x01,0x0a,0x0f,0x50,
0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x44,0x43,0x4d,
0x6f,0x74,0x6f,0x72,0x12,0x27,0x0a,0x0f,0x6e,0x6f,
0x6d,0x69,0x6e,0x61,0x6c,0x5f,0x76,0x6f,0x6c,0x74,
0x61,0x67,0x65,0x18,0x01,0x20,0x01,0x28,0x01,0x52,
0x0e,0x6e,0x6f,0x6d,0x69,0x6e,0x61,0x6c,0x56,0x6f,
0x6c,0x74,0x61,0x67,0x65,0x12,0x21,0x0a,0x0c,0x73,
0x74,0x61,0x6c,0x6c,0x5f,0x74,0x6f,0x72,0x71,0x75,
0x65,0x18,0x02,0x20,0x01,0x28,0x01,0x52,0x0b,0x73,
0x74,0x61,0x6c,0x6c,0x54,0x6f,0x72,0x71,0x75,0x65,
0x12,0x23,0x0a,0x0d,0x73,0x74,0x61,0x6c,0x6c,0x5f,
0x63,0x75,0x72,0x72,0x65,0x6e,0x74,0x18,0x03,0x20,
0x01,0x28,0x01,0x52,0x0c,0x73,0x74,0x61,0x6c,0x6c,
0x43,0x75,0x72,0x72,0x65,0x6e,0x74,0x12,0x21,0x0a,
0x0c,0x66,0x72,0x65,0x65,0x5f,0x63,0x75,0x72,0x72,
0x65,0x6e,0x74,0x18,0x04,0x20,0x01,0x28,0x01,0x52,
0x0b,0x66,0x72,0x65,0x65,0x43,0x75,0x72,0x72,0x65,
0x6e,0x74,0x12,0x1d,0x0a,0x0a,0x66,0x72,0x65,0x65,
0x5f,0x73,0x70,0x65,0x65,0x64,0x18,0x05,0x20,0x01,
0x28,0x01,0x52,0x09,0x66,0x72,0x65,0x65,0x53,0x70,
0x65,0x65,0x64,0x42,0x1a,0x0a,0x18,0x65,0x64,0x75,
0x2e,0x77,0x70,0x69,0x2e,0x66,0x69,0x72,0x73,0x74,
0x2e,0x6d,0x61,0x74,0x68,0x2e,0x70,0x72,0x6f,0x74,
0x6f,0x4a,0xdc,0x02,0x0a,0x06,0x12,0x04,0x00,0x00,
0x0c,0x01,0x0a,0x08,0x0a,0x01,0x0c,0x12,0x03,0x00,
0x00,0x12,0x0a,0x08,0x0a,0x01,0x02,0x12,0x03,0x02,
0x00,0x12,0x0a,0x08,0x0a,0x01,0x08,0x12,0x03,0x04,
0x00,0x31,0x0a,0x09,0x0a,0x02,0x08,0x01,0x12,0x03,
0x04,0x00,0x31,0x0a,0x0a,0x0a,0x02,0x04,0x00,0x12,
0x04,0x06,0x00,0x0c,0x01,0x0a,0x0a,0x0a,0x03,0x04,
0x00,0x01,0x12,0x03,0x06,0x08,0x17,0x0a,0x0b,0x0a,
0x04,0x04,0x00,0x02,0x00,0x12,0x03,0x07,0x02,0x1d,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,0x05,0x12,
0x03,0x07,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x00,0x01,0x12,0x03,0x07,0x09,0x18,0x0a,0x0c,
0x0a,0x05,0x04,0x00,0x02,0x00,0x03,0x12,0x03,0x07,
0x1b,0x1c,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,0x01,
0x12,0x03,0x08,0x02,0x1a,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x01,0x05,0x12,0x03,0x08,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x01,0x12,0x03,
0x08,0x09,0x15,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x01,0x03,0x12,0x03,0x08,0x18,0x19,0x0a,0x0b,0x0a,
0x04,0x04,0x00,0x02,0x02,0x12,0x03,0x09,0x02,0x1b,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,0x05,0x12,
0x03,0x09,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x02,0x01,0x12,0x03,0x09,0x09,0x16,0x0a,0x0c,
0x0a,0x05,0x04,0x00,0x02,0x02,0x03,0x12,0x03,0x09,
0x19,0x1a,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,0x03,
0x12,0x03,0x0a,0x02,0x1a,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x03,0x05,0x12,0x03,0x0a,0x02,0x08,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x03,0x01,0x12,0x03,
0x0a,0x09,0x15,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x03,0x03,0x12,0x03,0x0a,0x18,0x19,0x0a,0x0b,0x0a,
0x04,0x04,0x00,0x02,0x04,0x12,0x03,0x0b,0x02,0x18,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x04,0x05,0x12,
0x03,0x0b,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x04,0x01,0x12,0x03,0x0b,0x09,0x13,0x0a,0x0c,
0x0a,0x05,0x04,0x00,0x02,0x04,0x03,0x12,0x03,0x0b,
0x16,0x17,0x62,0x06,0x70,0x72,0x6f,0x74,0x6f,0x33,
};
static const char file_name[] = "plant.proto";
static const char wpi_proto_ProtobufDCMotor_name[] = "wpi.proto.ProtobufDCMotor";
std::string_view wpi_proto_ProtobufDCMotor::msg_name(void) noexcept { return wpi_proto_ProtobufDCMotor_name; }
pb_filedesc_t wpi_proto_ProtobufDCMotor::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufDCMotor, wpi_proto_ProtobufDCMotor, AUTO)
#ifndef PB_CONVERT_DOUBLE_FLOAT
/* On some platforms (such as AVR), double is really float.
* To be able to encode/decode double on these platforms, you need.
* to define PB_CONVERT_DOUBLE_FLOAT in pb.h or compiler command line.
*/
PB_STATIC_ASSERT(sizeof(double) == 8, DOUBLE_MUST_BE_8_BYTES)
#endif

View File

@@ -0,0 +1,57 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */
#ifndef PB_WPI_PROTO_PLANT_NPB_H_INCLUDED
#define PB_WPI_PROTO_PLANT_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
typedef struct _wpi_proto_ProtobufDCMotor {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double nominal_voltage;
double stall_torque;
double stall_current;
double free_current;
double free_speed;
} wpi_proto_ProtobufDCMotor;
/* Initializer values for message structs */
#define wpi_proto_ProtobufDCMotor_init_default {0, 0, 0, 0, 0}
#define wpi_proto_ProtobufDCMotor_init_zero {0, 0, 0, 0, 0}
/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufDCMotor_nominal_voltage_tag 1
#define wpi_proto_ProtobufDCMotor_stall_torque_tag 2
#define wpi_proto_ProtobufDCMotor_stall_current_tag 3
#define wpi_proto_ProtobufDCMotor_free_current_tag 4
#define wpi_proto_ProtobufDCMotor_free_speed_tag 5
/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufDCMotor_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, nominal_voltage, 1) \
X(a, STATIC, SINGULAR, DOUBLE, stall_torque, 2) \
X(a, STATIC, SINGULAR, DOUBLE, stall_current, 3) \
X(a, STATIC, SINGULAR, DOUBLE, free_current, 4) \
X(a, STATIC, SINGULAR, DOUBLE, free_speed, 5)
#define wpi_proto_ProtobufDCMotor_CALLBACK NULL
#define wpi_proto_ProtobufDCMotor_DEFAULT NULL
/* Maximum encoded size of messages (where known) */
#define WPI_PROTO_PLANT_NPB_H_MAX_SIZE wpi_proto_ProtobufDCMotor_size
#define wpi_proto_ProtobufDCMotor_size 45
#endif

View File

@@ -0,0 +1,137 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.9 */
#include "spline.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
#include <span>
#include <string_view>
static const uint8_t file_descriptor[] {
0x0a,0x0c,0x73,0x70,0x6c,0x69,0x6e,0x65,0x2e,0x70,
0x72,0x6f,0x74,0x6f,0x12,0x09,0x77,0x70,0x69,0x2e,
0x70,0x72,0x6f,0x74,0x6f,0x22,0x88,0x01,0x0a,0x1a,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x43,0x75,
0x62,0x69,0x63,0x48,0x65,0x72,0x6d,0x69,0x74,0x65,
0x53,0x70,0x6c,0x69,0x6e,0x65,0x12,0x1b,0x0a,0x09,
0x78,0x5f,0x69,0x6e,0x69,0x74,0x69,0x61,0x6c,0x18,
0x01,0x20,0x03,0x28,0x01,0x52,0x08,0x78,0x49,0x6e,
0x69,0x74,0x69,0x61,0x6c,0x12,0x17,0x0a,0x07,0x78,
0x5f,0x66,0x69,0x6e,0x61,0x6c,0x18,0x02,0x20,0x03,
0x28,0x01,0x52,0x06,0x78,0x46,0x69,0x6e,0x61,0x6c,
0x12,0x1b,0x0a,0x09,0x79,0x5f,0x69,0x6e,0x69,0x74,
0x69,0x61,0x6c,0x18,0x03,0x20,0x03,0x28,0x01,0x52,
0x08,0x79,0x49,0x6e,0x69,0x74,0x69,0x61,0x6c,0x12,
0x17,0x0a,0x07,0x79,0x5f,0x66,0x69,0x6e,0x61,0x6c,
0x18,0x04,0x20,0x03,0x28,0x01,0x52,0x06,0x79,0x46,
0x69,0x6e,0x61,0x6c,0x22,0x8a,0x01,0x0a,0x1c,0x50,
0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x51,0x75,0x69,
0x6e,0x74,0x69,0x63,0x48,0x65,0x72,0x6d,0x69,0x74,
0x65,0x53,0x70,0x6c,0x69,0x6e,0x65,0x12,0x1b,0x0a,
0x09,0x78,0x5f,0x69,0x6e,0x69,0x74,0x69,0x61,0x6c,
0x18,0x01,0x20,0x03,0x28,0x01,0x52,0x08,0x78,0x49,
0x6e,0x69,0x74,0x69,0x61,0x6c,0x12,0x17,0x0a,0x07,
0x78,0x5f,0x66,0x69,0x6e,0x61,0x6c,0x18,0x02,0x20,
0x03,0x28,0x01,0x52,0x06,0x78,0x46,0x69,0x6e,0x61,
0x6c,0x12,0x1b,0x0a,0x09,0x79,0x5f,0x69,0x6e,0x69,
0x74,0x69,0x61,0x6c,0x18,0x03,0x20,0x03,0x28,0x01,
0x52,0x08,0x79,0x49,0x6e,0x69,0x74,0x69,0x61,0x6c,
0x12,0x17,0x0a,0x07,0x79,0x5f,0x66,0x69,0x6e,0x61,
0x6c,0x18,0x04,0x20,0x03,0x28,0x01,0x52,0x06,0x79,
0x46,0x69,0x6e,0x61,0x6c,0x42,0x1a,0x0a,0x18,0x65,
0x64,0x75,0x2e,0x77,0x70,0x69,0x2e,0x66,0x69,0x72,
0x73,0x74,0x2e,0x6d,0x61,0x74,0x68,0x2e,0x70,0x72,
0x6f,0x74,0x6f,0x4a,0x89,0x05,0x0a,0x06,0x12,0x04,
0x00,0x00,0x12,0x01,0x0a,0x08,0x0a,0x01,0x0c,0x12,
0x03,0x00,0x00,0x12,0x0a,0x08,0x0a,0x01,0x02,0x12,
0x03,0x02,0x00,0x12,0x0a,0x08,0x0a,0x01,0x08,0x12,
0x03,0x04,0x00,0x31,0x0a,0x09,0x0a,0x02,0x08,0x01,
0x12,0x03,0x04,0x00,0x31,0x0a,0x0a,0x0a,0x02,0x04,
0x00,0x12,0x04,0x06,0x00,0x0b,0x01,0x0a,0x0a,0x0a,
0x03,0x04,0x00,0x01,0x12,0x03,0x06,0x08,0x22,0x0a,
0x0b,0x0a,0x04,0x04,0x00,0x02,0x00,0x12,0x03,0x07,
0x02,0x20,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,
0x04,0x12,0x03,0x07,0x02,0x0a,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x00,0x05,0x12,0x03,0x07,0x0b,0x11,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,0x01,0x12,
0x03,0x07,0x12,0x1b,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x00,0x03,0x12,0x03,0x07,0x1e,0x1f,0x0a,0x0b,
0x0a,0x04,0x04,0x00,0x02,0x01,0x12,0x03,0x08,0x02,
0x1e,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x04,
0x12,0x03,0x08,0x02,0x0a,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x01,0x05,0x12,0x03,0x08,0x0b,0x11,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x01,0x12,0x03,
0x08,0x12,0x19,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x01,0x03,0x12,0x03,0x08,0x1c,0x1d,0x0a,0x0b,0x0a,
0x04,0x04,0x00,0x02,0x02,0x12,0x03,0x09,0x02,0x20,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,0x04,0x12,
0x03,0x09,0x02,0x0a,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x02,0x05,0x12,0x03,0x09,0x0b,0x11,0x0a,0x0c,
0x0a,0x05,0x04,0x00,0x02,0x02,0x01,0x12,0x03,0x09,
0x12,0x1b,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,
0x03,0x12,0x03,0x09,0x1e,0x1f,0x0a,0x0b,0x0a,0x04,
0x04,0x00,0x02,0x03,0x12,0x03,0x0a,0x02,0x1e,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x03,0x04,0x12,0x03,
0x0a,0x02,0x0a,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x03,0x05,0x12,0x03,0x0a,0x0b,0x11,0x0a,0x0c,0x0a,
0x05,0x04,0x00,0x02,0x03,0x01,0x12,0x03,0x0a,0x12,
0x19,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x03,0x03,
0x12,0x03,0x0a,0x1c,0x1d,0x0a,0x0a,0x0a,0x02,0x04,
0x01,0x12,0x04,0x0d,0x00,0x12,0x01,0x0a,0x0a,0x0a,
0x03,0x04,0x01,0x01,0x12,0x03,0x0d,0x08,0x24,0x0a,
0x0b,0x0a,0x04,0x04,0x01,0x02,0x00,0x12,0x03,0x0e,
0x02,0x20,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x00,
0x04,0x12,0x03,0x0e,0x02,0x0a,0x0a,0x0c,0x0a,0x05,
0x04,0x01,0x02,0x00,0x05,0x12,0x03,0x0e,0x0b,0x11,
0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x00,0x01,0x12,
0x03,0x0e,0x12,0x1b,0x0a,0x0c,0x0a,0x05,0x04,0x01,
0x02,0x00,0x03,0x12,0x03,0x0e,0x1e,0x1f,0x0a,0x0b,
0x0a,0x04,0x04,0x01,0x02,0x01,0x12,0x03,0x0f,0x02,
0x1e,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x01,0x04,
0x12,0x03,0x0f,0x02,0x0a,0x0a,0x0c,0x0a,0x05,0x04,
0x01,0x02,0x01,0x05,0x12,0x03,0x0f,0x0b,0x11,0x0a,
0x0c,0x0a,0x05,0x04,0x01,0x02,0x01,0x01,0x12,0x03,
0x0f,0x12,0x19,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,
0x01,0x03,0x12,0x03,0x0f,0x1c,0x1d,0x0a,0x0b,0x0a,
0x04,0x04,0x01,0x02,0x02,0x12,0x03,0x10,0x02,0x20,
0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x02,0x04,0x12,
0x03,0x10,0x02,0x0a,0x0a,0x0c,0x0a,0x05,0x04,0x01,
0x02,0x02,0x05,0x12,0x03,0x10,0x0b,0x11,0x0a,0x0c,
0x0a,0x05,0x04,0x01,0x02,0x02,0x01,0x12,0x03,0x10,
0x12,0x1b,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x02,
0x03,0x12,0x03,0x10,0x1e,0x1f,0x0a,0x0b,0x0a,0x04,
0x04,0x01,0x02,0x03,0x12,0x03,0x11,0x02,0x1e,0x0a,
0x0c,0x0a,0x05,0x04,0x01,0x02,0x03,0x04,0x12,0x03,
0x11,0x02,0x0a,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,
0x03,0x05,0x12,0x03,0x11,0x0b,0x11,0x0a,0x0c,0x0a,
0x05,0x04,0x01,0x02,0x03,0x01,0x12,0x03,0x11,0x12,
0x19,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x03,0x03,
0x12,0x03,0x11,0x1c,0x1d,0x62,0x06,0x70,0x72,0x6f,
0x74,0x6f,0x33,
};
static const char file_name[] = "spline.proto";
static const char wpi_proto_ProtobufCubicHermiteSpline_name[] = "wpi.proto.ProtobufCubicHermiteSpline";
std::string_view wpi_proto_ProtobufCubicHermiteSpline::msg_name(void) noexcept { return wpi_proto_ProtobufCubicHermiteSpline_name; }
pb_filedesc_t wpi_proto_ProtobufCubicHermiteSpline::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufCubicHermiteSpline, wpi_proto_ProtobufCubicHermiteSpline, AUTO)
static const char wpi_proto_ProtobufQuinticHermiteSpline_name[] = "wpi.proto.ProtobufQuinticHermiteSpline";
std::string_view wpi_proto_ProtobufQuinticHermiteSpline::msg_name(void) noexcept { return wpi_proto_ProtobufQuinticHermiteSpline_name; }
pb_filedesc_t wpi_proto_ProtobufQuinticHermiteSpline::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufQuinticHermiteSpline, wpi_proto_ProtobufQuinticHermiteSpline, AUTO)
#ifndef PB_CONVERT_DOUBLE_FLOAT
/* On some platforms (such as AVR), double is really float.
* To be able to encode/decode double on these platforms, you need.
* to define PB_CONVERT_DOUBLE_FLOAT in pb.h or compiler command line.
*/
PB_STATIC_ASSERT(sizeof(double) == 8, DOUBLE_MUST_BE_8_BYTES)
#endif

View File

@@ -0,0 +1,79 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */
#ifndef PB_WPI_PROTO_SPLINE_NPB_H_INCLUDED
#define PB_WPI_PROTO_SPLINE_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
typedef struct _wpi_proto_ProtobufCubicHermiteSpline {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t x_initial;
pb_callback_t x_final;
pb_callback_t y_initial;
pb_callback_t y_final;
} wpi_proto_ProtobufCubicHermiteSpline;
typedef struct _wpi_proto_ProtobufQuinticHermiteSpline {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t x_initial;
pb_callback_t x_final;
pb_callback_t y_initial;
pb_callback_t y_final;
} wpi_proto_ProtobufQuinticHermiteSpline;
/* Initializer values for message structs */
#define wpi_proto_ProtobufCubicHermiteSpline_init_default {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufQuinticHermiteSpline_init_default {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufCubicHermiteSpline_init_zero {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufQuinticHermiteSpline_init_zero {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufCubicHermiteSpline_x_initial_tag 1
#define wpi_proto_ProtobufCubicHermiteSpline_x_final_tag 2
#define wpi_proto_ProtobufCubicHermiteSpline_y_initial_tag 3
#define wpi_proto_ProtobufCubicHermiteSpline_y_final_tag 4
#define wpi_proto_ProtobufQuinticHermiteSpline_x_initial_tag 1
#define wpi_proto_ProtobufQuinticHermiteSpline_x_final_tag 2
#define wpi_proto_ProtobufQuinticHermiteSpline_y_initial_tag 3
#define wpi_proto_ProtobufQuinticHermiteSpline_y_final_tag 4
/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufCubicHermiteSpline_FIELDLIST(X, a) \
X(a, CALLBACK, REPEATED, DOUBLE, x_initial, 1) \
X(a, CALLBACK, REPEATED, DOUBLE, x_final, 2) \
X(a, CALLBACK, REPEATED, DOUBLE, y_initial, 3) \
X(a, CALLBACK, REPEATED, DOUBLE, y_final, 4)
#define wpi_proto_ProtobufCubicHermiteSpline_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufCubicHermiteSpline_DEFAULT NULL
#define wpi_proto_ProtobufQuinticHermiteSpline_FIELDLIST(X, a) \
X(a, CALLBACK, REPEATED, DOUBLE, x_initial, 1) \
X(a, CALLBACK, REPEATED, DOUBLE, x_final, 2) \
X(a, CALLBACK, REPEATED, DOUBLE, y_initial, 3) \
X(a, CALLBACK, REPEATED, DOUBLE, y_final, 4)
#define wpi_proto_ProtobufQuinticHermiteSpline_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufQuinticHermiteSpline_DEFAULT NULL
/* Maximum encoded size of messages (where known) */
/* wpi_proto_ProtobufCubicHermiteSpline_size depends on runtime parameters */
/* wpi_proto_ProtobufQuinticHermiteSpline_size depends on runtime parameters */
#endif

View File

@@ -0,0 +1,107 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.9 */
#include "system.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
#include <span>
#include <string_view>
static const uint8_t file_descriptor[] {
0x0a,0x0c,0x73,0x79,0x73,0x74,0x65,0x6d,0x2e,0x70,
0x72,0x6f,0x74,0x6f,0x12,0x09,0x77,0x70,0x69,0x2e,
0x70,0x72,0x6f,0x74,0x6f,0x1a,0x0d,0x77,0x70,0x69,
0x6d,0x61,0x74,0x68,0x2e,0x70,0x72,0x6f,0x74,0x6f,
0x22,0x99,0x02,0x0a,0x14,0x50,0x72,0x6f,0x74,0x6f,
0x62,0x75,0x66,0x4c,0x69,0x6e,0x65,0x61,0x72,0x53,
0x79,0x73,0x74,0x65,0x6d,0x12,0x1d,0x0a,0x0a,0x6e,
0x75,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x18,
0x01,0x20,0x01,0x28,0x0d,0x52,0x09,0x6e,0x75,0x6d,
0x53,0x74,0x61,0x74,0x65,0x73,0x12,0x1d,0x0a,0x0a,
0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x70,0x75,0x74,0x73,
0x18,0x02,0x20,0x01,0x28,0x0d,0x52,0x09,0x6e,0x75,
0x6d,0x49,0x6e,0x70,0x75,0x74,0x73,0x12,0x1f,0x0a,
0x0b,0x6e,0x75,0x6d,0x5f,0x6f,0x75,0x74,0x70,0x75,
0x74,0x73,0x18,0x03,0x20,0x01,0x28,0x0d,0x52,0x0a,
0x6e,0x75,0x6d,0x4f,0x75,0x74,0x70,0x75,0x74,0x73,
0x12,0x27,0x0a,0x01,0x61,0x18,0x04,0x20,0x01,0x28,
0x0b,0x32,0x19,0x2e,0x77,0x70,0x69,0x2e,0x70,0x72,
0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,0x6f,0x62,
0x75,0x66,0x4d,0x61,0x74,0x72,0x69,0x78,0x52,0x01,
0x61,0x12,0x27,0x0a,0x01,0x62,0x18,0x05,0x20,0x01,
0x28,0x0b,0x32,0x19,0x2e,0x77,0x70,0x69,0x2e,0x70,
0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,0x6f,
0x62,0x75,0x66,0x4d,0x61,0x74,0x72,0x69,0x78,0x52,
0x01,0x62,0x12,0x27,0x0a,0x01,0x63,0x18,0x06,0x20,
0x01,0x28,0x0b,0x32,0x19,0x2e,0x77,0x70,0x69,0x2e,
0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,
0x6f,0x62,0x75,0x66,0x4d,0x61,0x74,0x72,0x69,0x78,
0x52,0x01,0x63,0x12,0x27,0x0a,0x01,0x64,0x18,0x07,
0x20,0x01,0x28,0x0b,0x32,0x19,0x2e,0x77,0x70,0x69,
0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,
0x74,0x6f,0x62,0x75,0x66,0x4d,0x61,0x74,0x72,0x69,
0x78,0x52,0x01,0x64,0x42,0x1a,0x0a,0x18,0x65,0x64,
0x75,0x2e,0x77,0x70,0x69,0x2e,0x66,0x69,0x72,0x73,
0x74,0x2e,0x6d,0x61,0x74,0x68,0x2e,0x70,0x72,0x6f,
0x74,0x6f,0x4a,0xd5,0x03,0x0a,0x06,0x12,0x04,0x00,
0x00,0x10,0x01,0x0a,0x08,0x0a,0x01,0x0c,0x12,0x03,
0x00,0x00,0x12,0x0a,0x08,0x0a,0x01,0x02,0x12,0x03,
0x02,0x00,0x12,0x0a,0x09,0x0a,0x02,0x03,0x00,0x12,
0x03,0x04,0x00,0x17,0x0a,0x08,0x0a,0x01,0x08,0x12,
0x03,0x06,0x00,0x31,0x0a,0x09,0x0a,0x02,0x08,0x01,
0x12,0x03,0x06,0x00,0x31,0x0a,0x0a,0x0a,0x02,0x04,
0x00,0x12,0x04,0x08,0x00,0x10,0x01,0x0a,0x0a,0x0a,
0x03,0x04,0x00,0x01,0x12,0x03,0x08,0x08,0x1c,0x0a,
0x0b,0x0a,0x04,0x04,0x00,0x02,0x00,0x12,0x03,0x09,
0x02,0x18,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,
0x05,0x12,0x03,0x09,0x02,0x08,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x00,0x01,0x12,0x03,0x09,0x09,0x13,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,0x03,0x12,
0x03,0x09,0x16,0x17,0x0a,0x0b,0x0a,0x04,0x04,0x00,
0x02,0x01,0x12,0x03,0x0a,0x02,0x18,0x0a,0x0c,0x0a,
0x05,0x04,0x00,0x02,0x01,0x05,0x12,0x03,0x0a,0x02,
0x08,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x01,
0x12,0x03,0x0a,0x09,0x13,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x01,0x03,0x12,0x03,0x0a,0x16,0x17,0x0a,
0x0b,0x0a,0x04,0x04,0x00,0x02,0x02,0x12,0x03,0x0b,
0x02,0x19,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,
0x05,0x12,0x03,0x0b,0x02,0x08,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x02,0x01,0x12,0x03,0x0b,0x09,0x14,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,0x03,0x12,
0x03,0x0b,0x17,0x18,0x0a,0x0b,0x0a,0x04,0x04,0x00,
0x02,0x03,0x12,0x03,0x0c,0x02,0x17,0x0a,0x0c,0x0a,
0x05,0x04,0x00,0x02,0x03,0x06,0x12,0x03,0x0c,0x02,
0x10,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x03,0x01,
0x12,0x03,0x0c,0x11,0x12,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x03,0x03,0x12,0x03,0x0c,0x15,0x16,0x0a,
0x0b,0x0a,0x04,0x04,0x00,0x02,0x04,0x12,0x03,0x0d,
0x02,0x17,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x04,
0x06,0x12,0x03,0x0d,0x02,0x10,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x04,0x01,0x12,0x03,0x0d,0x11,0x12,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x04,0x03,0x12,
0x03,0x0d,0x15,0x16,0x0a,0x0b,0x0a,0x04,0x04,0x00,
0x02,0x05,0x12,0x03,0x0e,0x02,0x17,0x0a,0x0c,0x0a,
0x05,0x04,0x00,0x02,0x05,0x06,0x12,0x03,0x0e,0x02,
0x10,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x05,0x01,
0x12,0x03,0x0e,0x11,0x12,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x05,0x03,0x12,0x03,0x0e,0x15,0x16,0x0a,
0x0b,0x0a,0x04,0x04,0x00,0x02,0x06,0x12,0x03,0x0f,
0x02,0x17,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x06,
0x06,0x12,0x03,0x0f,0x02,0x10,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x06,0x01,0x12,0x03,0x0f,0x11,0x12,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x06,0x03,0x12,
0x03,0x0f,0x15,0x16,0x62,0x06,0x70,0x72,0x6f,0x74,
0x6f,0x33,
};
static const char file_name[] = "system.proto";
static const char wpi_proto_ProtobufLinearSystem_name[] = "wpi.proto.ProtobufLinearSystem";
std::string_view wpi_proto_ProtobufLinearSystem::msg_name(void) noexcept { return wpi_proto_ProtobufLinearSystem_name; }
pb_filedesc_t wpi_proto_ProtobufLinearSystem::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufLinearSystem, wpi_proto_ProtobufLinearSystem, AUTO)

View File

@@ -0,0 +1,67 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */
#ifndef PB_WPI_PROTO_SYSTEM_NPB_H_INCLUDED
#define PB_WPI_PROTO_SYSTEM_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>
#include "wpimath.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
typedef struct _wpi_proto_ProtobufLinearSystem {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
uint32_t num_states;
uint32_t num_inputs;
uint32_t num_outputs;
pb_callback_t a;
pb_callback_t b;
pb_callback_t c;
pb_callback_t d;
} wpi_proto_ProtobufLinearSystem;
/* Initializer values for message structs */
#define wpi_proto_ProtobufLinearSystem_init_default {0, 0, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
#define wpi_proto_ProtobufLinearSystem_init_zero {0, 0, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufLinearSystem_num_states_tag 1
#define wpi_proto_ProtobufLinearSystem_num_inputs_tag 2
#define wpi_proto_ProtobufLinearSystem_num_outputs_tag 3
#define wpi_proto_ProtobufLinearSystem_a_tag 4
#define wpi_proto_ProtobufLinearSystem_b_tag 5
#define wpi_proto_ProtobufLinearSystem_c_tag 6
#define wpi_proto_ProtobufLinearSystem_d_tag 7
/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufLinearSystem_FIELDLIST(X, a_) \
X(a_, STATIC, SINGULAR, UINT32, num_states, 1) \
X(a_, STATIC, SINGULAR, UINT32, num_inputs, 2) \
X(a_, STATIC, SINGULAR, UINT32, num_outputs, 3) \
X(a_, CALLBACK, OPTIONAL, MESSAGE, a, 4) \
X(a_, CALLBACK, OPTIONAL, MESSAGE, b, 5) \
X(a_, CALLBACK, OPTIONAL, MESSAGE, c, 6) \
X(a_, CALLBACK, OPTIONAL, MESSAGE, d, 7)
#define wpi_proto_ProtobufLinearSystem_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufLinearSystem_DEFAULT NULL
#define wpi_proto_ProtobufLinearSystem_a_MSGTYPE wpi_proto_ProtobufMatrix
#define wpi_proto_ProtobufLinearSystem_b_MSGTYPE wpi_proto_ProtobufMatrix
#define wpi_proto_ProtobufLinearSystem_c_MSGTYPE wpi_proto_ProtobufMatrix
#define wpi_proto_ProtobufLinearSystem_d_MSGTYPE wpi_proto_ProtobufMatrix
/* Maximum encoded size of messages (where known) */
/* wpi_proto_ProtobufLinearSystem_size depends on runtime parameters */
#endif

View File

@@ -0,0 +1,118 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.9 */
#include "trajectory.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
#include <span>
#include <string_view>
static const uint8_t file_descriptor[] {
0x0a,0x10,0x74,0x72,0x61,0x6a,0x65,0x63,0x74,0x6f,
0x72,0x79,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x12,0x09,
0x77,0x70,0x69,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x1a,
0x10,0x67,0x65,0x6f,0x6d,0x65,0x74,0x72,0x79,0x32,
0x64,0x2e,0x70,0x72,0x6f,0x74,0x6f,0x22,0xba,0x01,
0x0a,0x17,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,
0x54,0x72,0x61,0x6a,0x65,0x63,0x74,0x6f,0x72,0x79,
0x53,0x74,0x61,0x74,0x65,0x12,0x12,0x0a,0x04,0x74,
0x69,0x6d,0x65,0x18,0x01,0x20,0x01,0x28,0x01,0x52,
0x04,0x74,0x69,0x6d,0x65,0x12,0x1a,0x0a,0x08,0x76,
0x65,0x6c,0x6f,0x63,0x69,0x74,0x79,0x18,0x02,0x20,
0x01,0x28,0x01,0x52,0x08,0x76,0x65,0x6c,0x6f,0x63,
0x69,0x74,0x79,0x12,0x22,0x0a,0x0c,0x61,0x63,0x63,
0x65,0x6c,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x18,
0x03,0x20,0x01,0x28,0x01,0x52,0x0c,0x61,0x63,0x63,
0x65,0x6c,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x12,
0x2d,0x0a,0x04,0x70,0x6f,0x73,0x65,0x18,0x04,0x20,
0x01,0x28,0x0b,0x32,0x19,0x2e,0x77,0x70,0x69,0x2e,
0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,0x74,
0x6f,0x62,0x75,0x66,0x50,0x6f,0x73,0x65,0x32,0x64,
0x52,0x04,0x70,0x6f,0x73,0x65,0x12,0x1c,0x0a,0x09,
0x63,0x75,0x72,0x76,0x61,0x74,0x75,0x72,0x65,0x18,
0x05,0x20,0x01,0x28,0x01,0x52,0x09,0x63,0x75,0x72,
0x76,0x61,0x74,0x75,0x72,0x65,0x22,0x50,0x0a,0x12,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x54,0x72,
0x61,0x6a,0x65,0x63,0x74,0x6f,0x72,0x79,0x12,0x3a,
0x0a,0x06,0x73,0x74,0x61,0x74,0x65,0x73,0x18,0x02,
0x20,0x03,0x28,0x0b,0x32,0x22,0x2e,0x77,0x70,0x69,
0x2e,0x70,0x72,0x6f,0x74,0x6f,0x2e,0x50,0x72,0x6f,
0x74,0x6f,0x62,0x75,0x66,0x54,0x72,0x61,0x6a,0x65,
0x63,0x74,0x6f,0x72,0x79,0x53,0x74,0x61,0x74,0x65,
0x52,0x06,0x73,0x74,0x61,0x74,0x65,0x73,0x42,0x1a,
0x0a,0x18,0x65,0x64,0x75,0x2e,0x77,0x70,0x69,0x2e,
0x66,0x69,0x72,0x73,0x74,0x2e,0x6d,0x61,0x74,0x68,
0x2e,0x70,0x72,0x6f,0x74,0x6f,0x4a,0xc4,0x03,0x0a,
0x06,0x12,0x04,0x00,0x00,0x12,0x01,0x0a,0x08,0x0a,
0x01,0x0c,0x12,0x03,0x00,0x00,0x12,0x0a,0x08,0x0a,
0x01,0x02,0x12,0x03,0x02,0x00,0x12,0x0a,0x09,0x0a,
0x02,0x03,0x00,0x12,0x03,0x04,0x00,0x1a,0x0a,0x08,
0x0a,0x01,0x08,0x12,0x03,0x06,0x00,0x31,0x0a,0x09,
0x0a,0x02,0x08,0x01,0x12,0x03,0x06,0x00,0x31,0x0a,
0x0a,0x0a,0x02,0x04,0x00,0x12,0x04,0x08,0x00,0x0e,
0x01,0x0a,0x0a,0x0a,0x03,0x04,0x00,0x01,0x12,0x03,
0x08,0x08,0x1f,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,
0x00,0x12,0x03,0x09,0x02,0x12,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x00,0x05,0x12,0x03,0x09,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,0x01,0x12,
0x03,0x09,0x09,0x0d,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x00,0x03,0x12,0x03,0x09,0x10,0x11,0x0a,0x0b,
0x0a,0x04,0x04,0x00,0x02,0x01,0x12,0x03,0x0a,0x02,
0x16,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x05,
0x12,0x03,0x0a,0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x01,0x01,0x12,0x03,0x0a,0x09,0x11,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,0x03,0x12,0x03,
0x0a,0x14,0x15,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,
0x02,0x12,0x03,0x0b,0x02,0x1a,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x02,0x05,0x12,0x03,0x0b,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,0x01,0x12,
0x03,0x0b,0x09,0x15,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x02,0x03,0x12,0x03,0x0b,0x18,0x19,0x0a,0x0b,
0x0a,0x04,0x04,0x00,0x02,0x03,0x12,0x03,0x0c,0x02,
0x1a,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x03,0x06,
0x12,0x03,0x0c,0x02,0x10,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x03,0x01,0x12,0x03,0x0c,0x11,0x15,0x0a,
0x0c,0x0a,0x05,0x04,0x00,0x02,0x03,0x03,0x12,0x03,
0x0c,0x18,0x19,0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,
0x04,0x12,0x03,0x0d,0x02,0x17,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x04,0x05,0x12,0x03,0x0d,0x02,0x08,
0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x04,0x01,0x12,
0x03,0x0d,0x09,0x12,0x0a,0x0c,0x0a,0x05,0x04,0x00,
0x02,0x04,0x03,0x12,0x03,0x0d,0x15,0x16,0x0a,0x0a,
0x0a,0x02,0x04,0x01,0x12,0x04,0x10,0x00,0x12,0x01,
0x0a,0x0a,0x0a,0x03,0x04,0x01,0x01,0x12,0x03,0x10,
0x08,0x1a,0x0a,0x0b,0x0a,0x04,0x04,0x01,0x02,0x00,
0x12,0x03,0x11,0x02,0x2e,0x0a,0x0c,0x0a,0x05,0x04,
0x01,0x02,0x00,0x04,0x12,0x03,0x11,0x02,0x0a,0x0a,
0x0c,0x0a,0x05,0x04,0x01,0x02,0x00,0x06,0x12,0x03,
0x11,0x0b,0x22,0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,
0x00,0x01,0x12,0x03,0x11,0x23,0x29,0x0a,0x0c,0x0a,
0x05,0x04,0x01,0x02,0x00,0x03,0x12,0x03,0x11,0x2c,
0x2d,0x62,0x06,0x70,0x72,0x6f,0x74,0x6f,0x33,
};
static const char file_name[] = "trajectory.proto";
static const char wpi_proto_ProtobufTrajectoryState_name[] = "wpi.proto.ProtobufTrajectoryState";
std::string_view wpi_proto_ProtobufTrajectoryState::msg_name(void) noexcept { return wpi_proto_ProtobufTrajectoryState_name; }
pb_filedesc_t wpi_proto_ProtobufTrajectoryState::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufTrajectoryState, wpi_proto_ProtobufTrajectoryState, AUTO)
static const char wpi_proto_ProtobufTrajectory_name[] = "wpi.proto.ProtobufTrajectory";
std::string_view wpi_proto_ProtobufTrajectory::msg_name(void) noexcept { return wpi_proto_ProtobufTrajectory_name; }
pb_filedesc_t wpi_proto_ProtobufTrajectory::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufTrajectory, wpi_proto_ProtobufTrajectory, AUTO)
#ifndef PB_CONVERT_DOUBLE_FLOAT
/* On some platforms (such as AVR), double is really float.
* To be able to encode/decode double on these platforms, you need.
* to define PB_CONVERT_DOUBLE_FLOAT in pb.h or compiler command line.
*/
PB_STATIC_ASSERT(sizeof(double) == 8, DOUBLE_MUST_BE_8_BYTES)
#endif

View File

@@ -0,0 +1,76 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */
#ifndef PB_WPI_PROTO_TRAJECTORY_NPB_H_INCLUDED
#define PB_WPI_PROTO_TRAJECTORY_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>
#include "geometry2d.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
typedef struct _wpi_proto_ProtobufTrajectoryState {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
double time;
double velocity;
double acceleration;
pb_callback_t pose;
double curvature;
} wpi_proto_ProtobufTrajectoryState;
typedef struct _wpi_proto_ProtobufTrajectory {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t states;
} wpi_proto_ProtobufTrajectory;
/* Initializer values for message structs */
#define wpi_proto_ProtobufTrajectoryState_init_default {0, 0, 0, {{NULL}, NULL}, 0}
#define wpi_proto_ProtobufTrajectory_init_default {{{NULL}, NULL}}
#define wpi_proto_ProtobufTrajectoryState_init_zero {0, 0, 0, {{NULL}, NULL}, 0}
#define wpi_proto_ProtobufTrajectory_init_zero {{{NULL}, NULL}}
/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufTrajectoryState_time_tag 1
#define wpi_proto_ProtobufTrajectoryState_velocity_tag 2
#define wpi_proto_ProtobufTrajectoryState_acceleration_tag 3
#define wpi_proto_ProtobufTrajectoryState_pose_tag 4
#define wpi_proto_ProtobufTrajectoryState_curvature_tag 5
#define wpi_proto_ProtobufTrajectory_states_tag 2
/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufTrajectoryState_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, DOUBLE, time, 1) \
X(a, STATIC, SINGULAR, DOUBLE, velocity, 2) \
X(a, STATIC, SINGULAR, DOUBLE, acceleration, 3) \
X(a, CALLBACK, OPTIONAL, MESSAGE, pose, 4) \
X(a, STATIC, SINGULAR, DOUBLE, curvature, 5)
#define wpi_proto_ProtobufTrajectoryState_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufTrajectoryState_DEFAULT NULL
#define wpi_proto_ProtobufTrajectoryState_pose_MSGTYPE wpi_proto_ProtobufPose2d
#define wpi_proto_ProtobufTrajectory_FIELDLIST(X, a) \
X(a, CALLBACK, REPEATED, MESSAGE, states, 2)
#define wpi_proto_ProtobufTrajectory_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufTrajectory_DEFAULT NULL
#define wpi_proto_ProtobufTrajectory_states_MSGTYPE wpi_proto_ProtobufTrajectoryState
/* Maximum encoded size of messages (where known) */
/* wpi_proto_ProtobufTrajectoryState_size depends on runtime parameters */
/* wpi_proto_ProtobufTrajectory_size depends on runtime parameters */
#endif

View File

@@ -0,0 +1,92 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.9 */
#include "wpimath.npb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
#include <span>
#include <string_view>
static const uint8_t file_descriptor[] {
0x0a,0x0d,0x77,0x70,0x69,0x6d,0x61,0x74,0x68,0x2e,
0x70,0x72,0x6f,0x74,0x6f,0x12,0x09,0x77,0x70,0x69,
0x2e,0x70,0x72,0x6f,0x74,0x6f,0x22,0x5a,0x0a,0x0e,
0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,0x4d,0x61,
0x74,0x72,0x69,0x78,0x12,0x19,0x0a,0x08,0x6e,0x75,
0x6d,0x5f,0x72,0x6f,0x77,0x73,0x18,0x01,0x20,0x01,
0x28,0x0d,0x52,0x07,0x6e,0x75,0x6d,0x52,0x6f,0x77,
0x73,0x12,0x19,0x0a,0x08,0x6e,0x75,0x6d,0x5f,0x63,
0x6f,0x6c,0x73,0x18,0x02,0x20,0x01,0x28,0x0d,0x52,
0x07,0x6e,0x75,0x6d,0x43,0x6f,0x6c,0x73,0x12,0x12,
0x0a,0x04,0x64,0x61,0x74,0x61,0x18,0x03,0x20,0x03,
0x28,0x01,0x52,0x04,0x64,0x61,0x74,0x61,0x22,0x24,
0x0a,0x0e,0x50,0x72,0x6f,0x74,0x6f,0x62,0x75,0x66,
0x56,0x65,0x63,0x74,0x6f,0x72,0x12,0x12,0x0a,0x04,
0x72,0x6f,0x77,0x73,0x18,0x01,0x20,0x03,0x28,0x01,
0x52,0x04,0x72,0x6f,0x77,0x73,0x42,0x1a,0x0a,0x18,
0x65,0x64,0x75,0x2e,0x77,0x70,0x69,0x2e,0x66,0x69,
0x72,0x73,0x74,0x2e,0x6d,0x61,0x74,0x68,0x2e,0x70,
0x72,0x6f,0x74,0x6f,0x4a,0xd9,0x02,0x0a,0x06,0x12,
0x04,0x00,0x00,0x0e,0x01,0x0a,0x08,0x0a,0x01,0x0c,
0x12,0x03,0x00,0x00,0x12,0x0a,0x08,0x0a,0x01,0x02,
0x12,0x03,0x02,0x00,0x12,0x0a,0x08,0x0a,0x01,0x08,
0x12,0x03,0x04,0x00,0x31,0x0a,0x09,0x0a,0x02,0x08,
0x01,0x12,0x03,0x04,0x00,0x31,0x0a,0x0a,0x0a,0x02,
0x04,0x00,0x12,0x04,0x06,0x00,0x0a,0x01,0x0a,0x0a,
0x0a,0x03,0x04,0x00,0x01,0x12,0x03,0x06,0x08,0x16,
0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,0x00,0x12,0x03,
0x07,0x02,0x16,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x00,0x05,0x12,0x03,0x07,0x02,0x08,0x0a,0x0c,0x0a,
0x05,0x04,0x00,0x02,0x00,0x01,0x12,0x03,0x07,0x09,
0x11,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x00,0x03,
0x12,0x03,0x07,0x14,0x15,0x0a,0x0b,0x0a,0x04,0x04,
0x00,0x02,0x01,0x12,0x03,0x08,0x02,0x16,0x0a,0x0c,
0x0a,0x05,0x04,0x00,0x02,0x01,0x05,0x12,0x03,0x08,
0x02,0x08,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x01,
0x01,0x12,0x03,0x08,0x09,0x11,0x0a,0x0c,0x0a,0x05,
0x04,0x00,0x02,0x01,0x03,0x12,0x03,0x08,0x14,0x15,
0x0a,0x0b,0x0a,0x04,0x04,0x00,0x02,0x02,0x12,0x03,
0x09,0x02,0x1b,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,
0x02,0x04,0x12,0x03,0x09,0x02,0x0a,0x0a,0x0c,0x0a,
0x05,0x04,0x00,0x02,0x02,0x05,0x12,0x03,0x09,0x0b,
0x11,0x0a,0x0c,0x0a,0x05,0x04,0x00,0x02,0x02,0x01,
0x12,0x03,0x09,0x12,0x16,0x0a,0x0c,0x0a,0x05,0x04,
0x00,0x02,0x02,0x03,0x12,0x03,0x09,0x19,0x1a,0x0a,
0x0a,0x0a,0x02,0x04,0x01,0x12,0x04,0x0c,0x00,0x0e,
0x01,0x0a,0x0a,0x0a,0x03,0x04,0x01,0x01,0x12,0x03,
0x0c,0x08,0x16,0x0a,0x0b,0x0a,0x04,0x04,0x01,0x02,
0x00,0x12,0x03,0x0d,0x02,0x1b,0x0a,0x0c,0x0a,0x05,
0x04,0x01,0x02,0x00,0x04,0x12,0x03,0x0d,0x02,0x0a,
0x0a,0x0c,0x0a,0x05,0x04,0x01,0x02,0x00,0x05,0x12,
0x03,0x0d,0x0b,0x11,0x0a,0x0c,0x0a,0x05,0x04,0x01,
0x02,0x00,0x01,0x12,0x03,0x0d,0x12,0x16,0x0a,0x0c,
0x0a,0x05,0x04,0x01,0x02,0x00,0x03,0x12,0x03,0x0d,
0x19,0x1a,0x62,0x06,0x70,0x72,0x6f,0x74,0x6f,0x33,
};
static const char file_name[] = "wpimath.proto";
static const char wpi_proto_ProtobufMatrix_name[] = "wpi.proto.ProtobufMatrix";
std::string_view wpi_proto_ProtobufMatrix::msg_name(void) noexcept { return wpi_proto_ProtobufMatrix_name; }
pb_filedesc_t wpi_proto_ProtobufMatrix::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufMatrix, wpi_proto_ProtobufMatrix, AUTO)
static const char wpi_proto_ProtobufVector_name[] = "wpi.proto.ProtobufVector";
std::string_view wpi_proto_ProtobufVector::msg_name(void) noexcept { return wpi_proto_ProtobufVector_name; }
pb_filedesc_t wpi_proto_ProtobufVector::file_descriptor(void) noexcept { return {::file_name, ::file_descriptor}; }
PB_BIND(wpi_proto_ProtobufVector, wpi_proto_ProtobufVector, AUTO)
#ifndef PB_CONVERT_DOUBLE_FLOAT
/* On some platforms (such as AVR), double is really float.
* To be able to encode/decode double on these platforms, you need.
* to define PB_CONVERT_DOUBLE_FLOAT in pb.h or compiler command line.
*/
PB_STATIC_ASSERT(sizeof(double) == 8, DOUBLE_MUST_BE_8_BYTES)
#endif

View File

@@ -0,0 +1,67 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.9 */
#ifndef PB_WPI_PROTO_WPIMATH_NPB_H_INCLUDED
#define PB_WPI_PROTO_WPIMATH_NPB_H_INCLUDED
#include <pb.h>
#include <span>
#include <string_view>
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
typedef struct _wpi_proto_ProtobufMatrix {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
uint32_t num_rows;
uint32_t num_cols;
pb_callback_t data;
} wpi_proto_ProtobufMatrix;
typedef struct _wpi_proto_ProtobufVector {
static const pb_msgdesc_t* msg_descriptor(void) noexcept;
static std::string_view msg_name(void) noexcept;
static pb_filedesc_t file_descriptor(void) noexcept;
pb_callback_t rows;
} wpi_proto_ProtobufVector;
/* Initializer values for message structs */
#define wpi_proto_ProtobufMatrix_init_default {0, 0, {{NULL}, NULL}}
#define wpi_proto_ProtobufVector_init_default {{{NULL}, NULL}}
#define wpi_proto_ProtobufMatrix_init_zero {0, 0, {{NULL}, NULL}}
#define wpi_proto_ProtobufVector_init_zero {{{NULL}, NULL}}
/* Field tags (for use in manual encoding/decoding) */
#define wpi_proto_ProtobufMatrix_num_rows_tag 1
#define wpi_proto_ProtobufMatrix_num_cols_tag 2
#define wpi_proto_ProtobufMatrix_data_tag 3
#define wpi_proto_ProtobufVector_rows_tag 1
/* Struct field encoding specification for nanopb */
#define wpi_proto_ProtobufMatrix_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, UINT32, num_rows, 1) \
X(a, STATIC, SINGULAR, UINT32, num_cols, 2) \
X(a, CALLBACK, REPEATED, DOUBLE, data, 3)
#define wpi_proto_ProtobufMatrix_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufMatrix_DEFAULT NULL
#define wpi_proto_ProtobufVector_FIELDLIST(X, a) \
X(a, CALLBACK, REPEATED, DOUBLE, rows, 1)
#define wpi_proto_ProtobufVector_CALLBACK pb_default_field_callback
#define wpi_proto_ProtobufVector_DEFAULT NULL
/* Maximum encoded size of messages (where known) */
/* wpi_proto_ProtobufMatrix_size depends on runtime parameters */
/* wpi_proto_ProtobufVector_size depends on runtime parameters */
#endif