WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
geometry2d.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_GEOMETRY2D_NPB_H_INCLUDED
8#define PB_WPI_PROTO_GEOMETRY2D_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;
26
28 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
29 static std::string_view msg_name(void) noexcept;
30 static pb_filedesc_t file_descriptor(void) noexcept;
31
32 double value;
34
36 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
37 static std::string_view msg_name(void) noexcept;
38 static pb_filedesc_t file_descriptor(void) noexcept;
39
43
45 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
46 static std::string_view msg_name(void) noexcept;
47 static pb_filedesc_t file_descriptor(void) noexcept;
48
52
54 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
55 static std::string_view msg_name(void) noexcept;
56 static pb_filedesc_t file_descriptor(void) noexcept;
57
58 double dx;
59 double dy;
60 double dtheta;
62
64 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
65 static std::string_view msg_name(void) noexcept;
66 static pb_filedesc_t file_descriptor(void) noexcept;
67
69 double xWidth;
70 double yWidth;
72
74 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
75 static std::string_view msg_name(void) noexcept;
76 static pb_filedesc_t file_descriptor(void) noexcept;
77
79 double xSemiAxis;
80 double ySemiAxis;
82
83
84/* Initializer values for message structs */
85#define wpi_proto_ProtobufTranslation2d_init_default {0, 0}
86#define wpi_proto_ProtobufRotation2d_init_default {0}
87#define wpi_proto_ProtobufPose2d_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
88#define wpi_proto_ProtobufTransform2d_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
89#define wpi_proto_ProtobufTwist2d_init_default {0, 0, 0}
90#define wpi_proto_ProtobufRectangle2d_init_default {{{NULL}, NULL}, 0, 0}
91#define wpi_proto_ProtobufEllipse2d_init_default {{{NULL}, NULL}, 0, 0}
92#define wpi_proto_ProtobufTranslation2d_init_zero {0, 0}
93#define wpi_proto_ProtobufRotation2d_init_zero {0}
94#define wpi_proto_ProtobufPose2d_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
95#define wpi_proto_ProtobufTransform2d_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
96#define wpi_proto_ProtobufTwist2d_init_zero {0, 0, 0}
97#define wpi_proto_ProtobufRectangle2d_init_zero {{{NULL}, NULL}, 0, 0}
98#define wpi_proto_ProtobufEllipse2d_init_zero {{{NULL}, NULL}, 0, 0}
99
100/* Field tags (for use in manual encoding/decoding) */
101#define wpi_proto_ProtobufTranslation2d_x_tag 1
102#define wpi_proto_ProtobufTranslation2d_y_tag 2
103#define wpi_proto_ProtobufRotation2d_value_tag 1
104#define wpi_proto_ProtobufPose2d_translation_tag 1
105#define wpi_proto_ProtobufPose2d_rotation_tag 2
106#define wpi_proto_ProtobufTransform2d_translation_tag 1
107#define wpi_proto_ProtobufTransform2d_rotation_tag 2
108#define wpi_proto_ProtobufTwist2d_dx_tag 1
109#define wpi_proto_ProtobufTwist2d_dy_tag 2
110#define wpi_proto_ProtobufTwist2d_dtheta_tag 3
111#define wpi_proto_ProtobufRectangle2d_center_tag 1
112#define wpi_proto_ProtobufRectangle2d_xWidth_tag 2
113#define wpi_proto_ProtobufRectangle2d_yWidth_tag 3
114#define wpi_proto_ProtobufEllipse2d_center_tag 1
115#define wpi_proto_ProtobufEllipse2d_xSemiAxis_tag 2
116#define wpi_proto_ProtobufEllipse2d_ySemiAxis_tag 3
117
118/* Struct field encoding specification for nanopb */
119#define wpi_proto_ProtobufTranslation2d_FIELDLIST(X, a) \
120X(a, STATIC, SINGULAR, DOUBLE, x, 1) \
121X(a, STATIC, SINGULAR, DOUBLE, y, 2)
122#define wpi_proto_ProtobufTranslation2d_CALLBACK NULL
123#define wpi_proto_ProtobufTranslation2d_DEFAULT NULL
124
125#define wpi_proto_ProtobufRotation2d_FIELDLIST(X, a) \
126X(a, STATIC, SINGULAR, DOUBLE, value, 1)
127#define wpi_proto_ProtobufRotation2d_CALLBACK NULL
128#define wpi_proto_ProtobufRotation2d_DEFAULT NULL
129
130#define wpi_proto_ProtobufPose2d_FIELDLIST(X, a) \
131X(a, CALLBACK, OPTIONAL, MESSAGE, translation, 1) \
132X(a, CALLBACK, OPTIONAL, MESSAGE, rotation, 2)
133#define wpi_proto_ProtobufPose2d_CALLBACK pb_default_field_callback
134#define wpi_proto_ProtobufPose2d_DEFAULT NULL
135#define wpi_proto_ProtobufPose2d_translation_MSGTYPE wpi_proto_ProtobufTranslation2d
136#define wpi_proto_ProtobufPose2d_rotation_MSGTYPE wpi_proto_ProtobufRotation2d
137
138#define wpi_proto_ProtobufTransform2d_FIELDLIST(X, a) \
139X(a, CALLBACK, OPTIONAL, MESSAGE, translation, 1) \
140X(a, CALLBACK, OPTIONAL, MESSAGE, rotation, 2)
141#define wpi_proto_ProtobufTransform2d_CALLBACK pb_default_field_callback
142#define wpi_proto_ProtobufTransform2d_DEFAULT NULL
143#define wpi_proto_ProtobufTransform2d_translation_MSGTYPE wpi_proto_ProtobufTranslation2d
144#define wpi_proto_ProtobufTransform2d_rotation_MSGTYPE wpi_proto_ProtobufRotation2d
145
146#define wpi_proto_ProtobufTwist2d_FIELDLIST(X, a) \
147X(a, STATIC, SINGULAR, DOUBLE, dx, 1) \
148X(a, STATIC, SINGULAR, DOUBLE, dy, 2) \
149X(a, STATIC, SINGULAR, DOUBLE, dtheta, 3)
150#define wpi_proto_ProtobufTwist2d_CALLBACK NULL
151#define wpi_proto_ProtobufTwist2d_DEFAULT NULL
152
153#define wpi_proto_ProtobufRectangle2d_FIELDLIST(X, a) \
154X(a, CALLBACK, OPTIONAL, MESSAGE, center, 1) \
155X(a, STATIC, SINGULAR, DOUBLE, xWidth, 2) \
156X(a, STATIC, SINGULAR, DOUBLE, yWidth, 3)
157#define wpi_proto_ProtobufRectangle2d_CALLBACK pb_default_field_callback
158#define wpi_proto_ProtobufRectangle2d_DEFAULT NULL
159#define wpi_proto_ProtobufRectangle2d_center_MSGTYPE wpi_proto_ProtobufPose2d
160
161#define wpi_proto_ProtobufEllipse2d_FIELDLIST(X, a) \
162X(a, CALLBACK, OPTIONAL, MESSAGE, center, 1) \
163X(a, STATIC, SINGULAR, DOUBLE, xSemiAxis, 2) \
164X(a, STATIC, SINGULAR, DOUBLE, ySemiAxis, 3)
165#define wpi_proto_ProtobufEllipse2d_CALLBACK pb_default_field_callback
166#define wpi_proto_ProtobufEllipse2d_DEFAULT NULL
167#define wpi_proto_ProtobufEllipse2d_center_MSGTYPE wpi_proto_ProtobufPose2d
168
169/* Maximum encoded size of messages (where known) */
170/* wpi_proto_ProtobufPose2d_size depends on runtime parameters */
171/* wpi_proto_ProtobufTransform2d_size depends on runtime parameters */
172/* wpi_proto_ProtobufRectangle2d_size depends on runtime parameters */
173/* wpi_proto_ProtobufEllipse2d_size depends on runtime parameters */
174#define WPI_PROTO_GEOMETRY2D_NPB_H_MAX_SIZE wpi_proto_ProtobufTwist2d_size
175#define wpi_proto_ProtobufRotation2d_size 9
176#define wpi_proto_ProtobufTranslation2d_size 18
177#define wpi_proto_ProtobufTwist2d_size 27
178
179
180#endif
struct _wpi_proto_ProtobufTranslation2d wpi_proto_ProtobufTranslation2d
struct _wpi_proto_ProtobufTwist2d wpi_proto_ProtobufTwist2d
struct _wpi_proto_ProtobufEllipse2d wpi_proto_ProtobufEllipse2d
struct _wpi_proto_ProtobufTransform2d wpi_proto_ProtobufTransform2d
struct _wpi_proto_ProtobufRectangle2d wpi_proto_ProtobufRectangle2d
struct _wpi_proto_ProtobufPose2d wpi_proto_ProtobufPose2d
struct _wpi_proto_ProtobufRotation2d wpi_proto_ProtobufRotation2d
Definition geometry2d.npb.h:73
double ySemiAxis
Definition geometry2d.npb.h:80
double xSemiAxis
Definition geometry2d.npb.h:79
static std::string_view msg_name(void) noexcept
static const pb_msgdesc_t * msg_descriptor(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
pb_callback_t center
Definition geometry2d.npb.h:78
Definition geometry2d.npb.h:35
pb_callback_t translation
Definition geometry2d.npb.h:40
pb_callback_t rotation
Definition geometry2d.npb.h:41
static pb_filedesc_t file_descriptor(void) noexcept
static std::string_view msg_name(void) noexcept
static const pb_msgdesc_t * msg_descriptor(void) noexcept
Definition geometry2d.npb.h:63
static std::string_view msg_name(void) noexcept
double yWidth
Definition geometry2d.npb.h:70
static pb_filedesc_t file_descriptor(void) noexcept
double xWidth
Definition geometry2d.npb.h:69
static const pb_msgdesc_t * msg_descriptor(void) noexcept
pb_callback_t center
Definition geometry2d.npb.h:68
Definition geometry2d.npb.h:27
static pb_filedesc_t file_descriptor(void) noexcept
double value
Definition geometry2d.npb.h:32
static const pb_msgdesc_t * msg_descriptor(void) noexcept
static std::string_view msg_name(void) noexcept
Definition geometry2d.npb.h:44
static const pb_msgdesc_t * msg_descriptor(void) noexcept
pb_callback_t rotation
Definition geometry2d.npb.h:50
pb_callback_t translation
Definition geometry2d.npb.h:49
static std::string_view msg_name(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
Definition geometry2d.npb.h:18
static std::string_view msg_name(void) noexcept
static const pb_msgdesc_t * msg_descriptor(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
double x
Definition geometry2d.npb.h:23
double y
Definition geometry2d.npb.h:24
Definition geometry2d.npb.h:53
static const pb_msgdesc_t * msg_descriptor(void) noexcept
double dx
Definition geometry2d.npb.h:58
static std::string_view msg_name(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
double dtheta
Definition geometry2d.npb.h:60
double dy
Definition geometry2d.npb.h:59
Definition pb.h:414
Definition pb.h:322
Definition pb.h:331