WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
Rotation2dProto.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
5#pragma once
6
7#include <wpi/SymbolExports.h>
9
11#include "pb.h"
13
14template <>
15struct WPILIB_DLLEXPORT wpi::Protobuf<frc::Rotation2d> {
19 static std::optional<frc::Rotation2d> Unpack(InputStream& stream);
20 static bool Pack(OutputStream& stream, const frc::Rotation2d& value);
21};
#define WPILIB_DLLEXPORT
Definition SymbolExports.h:36
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition Rotation2d.h:31
Class for wrapping a nanopb istream.
Definition Protobuf.h:55
Class for wrapping a nanopb ostream.
Definition Protobuf.h:119
struct _wpi_proto_ProtobufRotation2d wpi_proto_ProtobufRotation2d
Foonathan namespace.
Definition ntcore_cpp.h:26
Definition geometry2d.npb.h:27
static std::optional< frc::Rotation2d > Unpack(InputStream &stream)
static bool Pack(OutputStream &stream, const frc::Rotation2d &value)
Protobuf serialization template.
Definition Protobuf.h:36