WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
geometry3d.npb.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4/* Automatically generated nanopb header */
5/* Generated by nanopb-0.4.9 */
6
7#ifndef PB_WPI_PROTO_GEOMETRY3D_NPB_H_INCLUDED
8#define PB_WPI_PROTO_GEOMETRY3D_NPB_H_INCLUDED
9#include <pb.h>
10#include <span>
11#include <string_view>
12
13#if PB_PROTO_HEADER_VERSION != 40
14#error Regenerate this file with the current version of nanopb generator.
15#endif
16
17/* Struct definitions */
19 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
20 static std::string_view msg_name(void) noexcept;
21 static pb_filedesc_t file_descriptor(void) noexcept;
22
23 double x;
24 double y;
25 double z;
27
29 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
30 static std::string_view msg_name(void) noexcept;
31 static pb_filedesc_t file_descriptor(void) noexcept;
32
33 double w;
34 double x;
35 double y;
36 double z;
38
40 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
41 static std::string_view msg_name(void) noexcept;
42 static pb_filedesc_t file_descriptor(void) noexcept;
43
46
48 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
49 static std::string_view msg_name(void) noexcept;
50 static pb_filedesc_t file_descriptor(void) noexcept;
51
55
57 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
58 static std::string_view msg_name(void) noexcept;
59 static pb_filedesc_t file_descriptor(void) noexcept;
60
64
66 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
67 static std::string_view msg_name(void) noexcept;
68 static pb_filedesc_t file_descriptor(void) noexcept;
69
70 double dx;
71 double dy;
72 double dz;
73 double rx;
74 double ry;
75 double rz;
77
78
79/* Initializer values for message structs */
80#define wpi_proto_ProtobufTranslation3d_init_default {0, 0, 0}
81#define wpi_proto_ProtobufQuaternion_init_default {0, 0, 0, 0}
82#define wpi_proto_ProtobufRotation3d_init_default {{{NULL}, NULL}}
83#define wpi_proto_ProtobufPose3d_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
84#define wpi_proto_ProtobufTransform3d_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
85#define wpi_proto_ProtobufTwist3d_init_default {0, 0, 0, 0, 0, 0}
86#define wpi_proto_ProtobufTranslation3d_init_zero {0, 0, 0}
87#define wpi_proto_ProtobufQuaternion_init_zero {0, 0, 0, 0}
88#define wpi_proto_ProtobufRotation3d_init_zero {{{NULL}, NULL}}
89#define wpi_proto_ProtobufPose3d_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
90#define wpi_proto_ProtobufTransform3d_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
91#define wpi_proto_ProtobufTwist3d_init_zero {0, 0, 0, 0, 0, 0}
92
93/* Field tags (for use in manual encoding/decoding) */
94#define wpi_proto_ProtobufTranslation3d_x_tag 1
95#define wpi_proto_ProtobufTranslation3d_y_tag 2
96#define wpi_proto_ProtobufTranslation3d_z_tag 3
97#define wpi_proto_ProtobufQuaternion_w_tag 1
98#define wpi_proto_ProtobufQuaternion_x_tag 2
99#define wpi_proto_ProtobufQuaternion_y_tag 3
100#define wpi_proto_ProtobufQuaternion_z_tag 4
101#define wpi_proto_ProtobufRotation3d_q_tag 1
102#define wpi_proto_ProtobufPose3d_translation_tag 1
103#define wpi_proto_ProtobufPose3d_rotation_tag 2
104#define wpi_proto_ProtobufTransform3d_translation_tag 1
105#define wpi_proto_ProtobufTransform3d_rotation_tag 2
106#define wpi_proto_ProtobufTwist3d_dx_tag 1
107#define wpi_proto_ProtobufTwist3d_dy_tag 2
108#define wpi_proto_ProtobufTwist3d_dz_tag 3
109#define wpi_proto_ProtobufTwist3d_rx_tag 4
110#define wpi_proto_ProtobufTwist3d_ry_tag 5
111#define wpi_proto_ProtobufTwist3d_rz_tag 6
112
113/* Struct field encoding specification for nanopb */
114#define wpi_proto_ProtobufTranslation3d_FIELDLIST(X, a) \
115X(a, STATIC, SINGULAR, DOUBLE, x, 1) \
116X(a, STATIC, SINGULAR, DOUBLE, y, 2) \
117X(a, STATIC, SINGULAR, DOUBLE, z, 3)
118#define wpi_proto_ProtobufTranslation3d_CALLBACK NULL
119#define wpi_proto_ProtobufTranslation3d_DEFAULT NULL
120
121#define wpi_proto_ProtobufQuaternion_FIELDLIST(X, a) \
122X(a, STATIC, SINGULAR, DOUBLE, w, 1) \
123X(a, STATIC, SINGULAR, DOUBLE, x, 2) \
124X(a, STATIC, SINGULAR, DOUBLE, y, 3) \
125X(a, STATIC, SINGULAR, DOUBLE, z, 4)
126#define wpi_proto_ProtobufQuaternion_CALLBACK NULL
127#define wpi_proto_ProtobufQuaternion_DEFAULT NULL
128
129#define wpi_proto_ProtobufRotation3d_FIELDLIST(X, a) \
130X(a, CALLBACK, OPTIONAL, MESSAGE, q, 1)
131#define wpi_proto_ProtobufRotation3d_CALLBACK pb_default_field_callback
132#define wpi_proto_ProtobufRotation3d_DEFAULT NULL
133#define wpi_proto_ProtobufRotation3d_q_MSGTYPE wpi_proto_ProtobufQuaternion
134
135#define wpi_proto_ProtobufPose3d_FIELDLIST(X, a) \
136X(a, CALLBACK, OPTIONAL, MESSAGE, translation, 1) \
137X(a, CALLBACK, OPTIONAL, MESSAGE, rotation, 2)
138#define wpi_proto_ProtobufPose3d_CALLBACK pb_default_field_callback
139#define wpi_proto_ProtobufPose3d_DEFAULT NULL
140#define wpi_proto_ProtobufPose3d_translation_MSGTYPE wpi_proto_ProtobufTranslation3d
141#define wpi_proto_ProtobufPose3d_rotation_MSGTYPE wpi_proto_ProtobufRotation3d
142
143#define wpi_proto_ProtobufTransform3d_FIELDLIST(X, a) \
144X(a, CALLBACK, OPTIONAL, MESSAGE, translation, 1) \
145X(a, CALLBACK, OPTIONAL, MESSAGE, rotation, 2)
146#define wpi_proto_ProtobufTransform3d_CALLBACK pb_default_field_callback
147#define wpi_proto_ProtobufTransform3d_DEFAULT NULL
148#define wpi_proto_ProtobufTransform3d_translation_MSGTYPE wpi_proto_ProtobufTranslation3d
149#define wpi_proto_ProtobufTransform3d_rotation_MSGTYPE wpi_proto_ProtobufRotation3d
150
151#define wpi_proto_ProtobufTwist3d_FIELDLIST(X, a) \
152X(a, STATIC, SINGULAR, DOUBLE, dx, 1) \
153X(a, STATIC, SINGULAR, DOUBLE, dy, 2) \
154X(a, STATIC, SINGULAR, DOUBLE, dz, 3) \
155X(a, STATIC, SINGULAR, DOUBLE, rx, 4) \
156X(a, STATIC, SINGULAR, DOUBLE, ry, 5) \
157X(a, STATIC, SINGULAR, DOUBLE, rz, 6)
158#define wpi_proto_ProtobufTwist3d_CALLBACK NULL
159#define wpi_proto_ProtobufTwist3d_DEFAULT NULL
160
161/* Maximum encoded size of messages (where known) */
162/* wpi_proto_ProtobufRotation3d_size depends on runtime parameters */
163/* wpi_proto_ProtobufPose3d_size depends on runtime parameters */
164/* wpi_proto_ProtobufTransform3d_size depends on runtime parameters */
165#define WPI_PROTO_GEOMETRY3D_NPB_H_MAX_SIZE wpi_proto_ProtobufTwist3d_size
166#define wpi_proto_ProtobufQuaternion_size 36
167#define wpi_proto_ProtobufTranslation3d_size 27
168#define wpi_proto_ProtobufTwist3d_size 54
169
170
171#endif
struct _wpi_proto_ProtobufTranslation3d wpi_proto_ProtobufTranslation3d
struct _wpi_proto_ProtobufRotation3d wpi_proto_ProtobufRotation3d
struct _wpi_proto_ProtobufTransform3d wpi_proto_ProtobufTransform3d
struct _wpi_proto_ProtobufPose3d wpi_proto_ProtobufPose3d
struct _wpi_proto_ProtobufQuaternion wpi_proto_ProtobufQuaternion
struct _wpi_proto_ProtobufTwist3d wpi_proto_ProtobufTwist3d
Definition geometry3d.npb.h:47
static std::string_view msg_name(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
pb_callback_t translation
Definition geometry3d.npb.h:52
pb_callback_t rotation
Definition geometry3d.npb.h:53
static const pb_msgdesc_t * msg_descriptor(void) noexcept
Definition geometry3d.npb.h:28
static const pb_msgdesc_t * msg_descriptor(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
double w
Definition geometry3d.npb.h:33
double z
Definition geometry3d.npb.h:36
double x
Definition geometry3d.npb.h:34
double y
Definition geometry3d.npb.h:35
static std::string_view msg_name(void) noexcept
Definition geometry3d.npb.h:39
static std::string_view msg_name(void) noexcept
pb_callback_t q
Definition geometry3d.npb.h:44
static pb_filedesc_t file_descriptor(void) noexcept
static const pb_msgdesc_t * msg_descriptor(void) noexcept
Definition geometry3d.npb.h:56
static pb_filedesc_t file_descriptor(void) noexcept
pb_callback_t translation
Definition geometry3d.npb.h:61
static const pb_msgdesc_t * msg_descriptor(void) noexcept
pb_callback_t rotation
Definition geometry3d.npb.h:62
static std::string_view msg_name(void) noexcept
Definition geometry3d.npb.h:18
static pb_filedesc_t file_descriptor(void) noexcept
double y
Definition geometry3d.npb.h:24
static const pb_msgdesc_t * msg_descriptor(void) noexcept
double z
Definition geometry3d.npb.h:25
double x
Definition geometry3d.npb.h:23
static std::string_view msg_name(void) noexcept
Definition geometry3d.npb.h:65
double rz
Definition geometry3d.npb.h:75
double rx
Definition geometry3d.npb.h:73
double ry
Definition geometry3d.npb.h:74
double dx
Definition geometry3d.npb.h:70
double dz
Definition geometry3d.npb.h:72
static pb_filedesc_t file_descriptor(void) noexcept
static const pb_msgdesc_t * msg_descriptor(void) noexcept
double dy
Definition geometry3d.npb.h:71
static std::string_view msg_name(void) noexcept
Definition pb.h:414
Definition pb.h:322
Definition pb.h:331