WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
trajectory.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_TRAJECTORY_NPB_H_INCLUDED
8#define PB_WPI_PROTO_TRAJECTORY_NPB_H_INCLUDED
9#include <pb.h>
10#include <span>
11#include <string_view>
12#include "geometry2d.npb.h"
13
14#if PB_PROTO_HEADER_VERSION != 40
15#error Regenerate this file with the current version of nanopb generator.
16#endif
17
18/* Struct definitions */
20 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
21 static std::string_view msg_name(void) noexcept;
22 static pb_filedesc_t file_descriptor(void) noexcept;
23
24 double time;
25 double velocity;
28 double curvature;
30
32 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
33 static std::string_view msg_name(void) noexcept;
34 static pb_filedesc_t file_descriptor(void) noexcept;
35
38
39
40/* Initializer values for message structs */
41#define wpi_proto_ProtobufTrajectoryState_init_default {0, 0, 0, {{NULL}, NULL}, 0}
42#define wpi_proto_ProtobufTrajectory_init_default {{{NULL}, NULL}}
43#define wpi_proto_ProtobufTrajectoryState_init_zero {0, 0, 0, {{NULL}, NULL}, 0}
44#define wpi_proto_ProtobufTrajectory_init_zero {{{NULL}, NULL}}
45
46/* Field tags (for use in manual encoding/decoding) */
47#define wpi_proto_ProtobufTrajectoryState_time_tag 1
48#define wpi_proto_ProtobufTrajectoryState_velocity_tag 2
49#define wpi_proto_ProtobufTrajectoryState_acceleration_tag 3
50#define wpi_proto_ProtobufTrajectoryState_pose_tag 4
51#define wpi_proto_ProtobufTrajectoryState_curvature_tag 5
52#define wpi_proto_ProtobufTrajectory_states_tag 2
53
54/* Struct field encoding specification for nanopb */
55#define wpi_proto_ProtobufTrajectoryState_FIELDLIST(X, a) \
56X(a, STATIC, SINGULAR, DOUBLE, time, 1) \
57X(a, STATIC, SINGULAR, DOUBLE, velocity, 2) \
58X(a, STATIC, SINGULAR, DOUBLE, acceleration, 3) \
59X(a, CALLBACK, OPTIONAL, MESSAGE, pose, 4) \
60X(a, STATIC, SINGULAR, DOUBLE, curvature, 5)
61#define wpi_proto_ProtobufTrajectoryState_CALLBACK pb_default_field_callback
62#define wpi_proto_ProtobufTrajectoryState_DEFAULT NULL
63#define wpi_proto_ProtobufTrajectoryState_pose_MSGTYPE wpi_proto_ProtobufPose2d
64
65#define wpi_proto_ProtobufTrajectory_FIELDLIST(X, a) \
66X(a, CALLBACK, REPEATED, MESSAGE, states, 2)
67#define wpi_proto_ProtobufTrajectory_CALLBACK pb_default_field_callback
68#define wpi_proto_ProtobufTrajectory_DEFAULT NULL
69#define wpi_proto_ProtobufTrajectory_states_MSGTYPE wpi_proto_ProtobufTrajectoryState
70
71/* Maximum encoded size of messages (where known) */
72/* wpi_proto_ProtobufTrajectoryState_size depends on runtime parameters */
73/* wpi_proto_ProtobufTrajectory_size depends on runtime parameters */
74
75
76#endif
Definition trajectory.npb.h:31
static pb_filedesc_t file_descriptor(void) noexcept
static const pb_msgdesc_t * msg_descriptor(void) noexcept
static std::string_view msg_name(void) noexcept
pb_callback_t states
Definition trajectory.npb.h:36
Definition trajectory.npb.h:19
double time
Definition trajectory.npb.h:24
double acceleration
Definition trajectory.npb.h:26
static const pb_msgdesc_t * msg_descriptor(void) noexcept
double curvature
Definition trajectory.npb.h:28
static std::string_view msg_name(void) noexcept
pb_callback_t pose
Definition trajectory.npb.h:27
static pb_filedesc_t file_descriptor(void) noexcept
double velocity
Definition trajectory.npb.h:25
Definition pb.h:414
Definition pb.h:322
Definition pb.h:331
struct _wpi_proto_ProtobufTrajectory wpi_proto_ProtobufTrajectory
struct _wpi_proto_ProtobufTrajectoryState wpi_proto_ProtobufTrajectoryState