WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
ChassisVelocitiesStruct.hpp
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
10
11template <>
12struct WPILIB_DLLEXPORT wpi::util::Struct<wpi::math::ChassisVelocities> {
13 static constexpr std::string_view GetTypeName() {
14 return "ChassisVelocities";
15 }
16 static constexpr size_t GetSize() { return 24; }
17 static constexpr std::string_view GetSchema() {
18 return "double vx;double vy;double omega";
19 }
20
21 static wpi::math::ChassisVelocities Unpack(std::span<const uint8_t> data);
22 static void Pack(std::span<uint8_t> data,
23 const wpi::math::ChassisVelocities& value);
24};
25
#define WPILIB_DLLEXPORT
Definition SymbolExports.hpp:36
Specifies that a type is capable of raw struct serialization and deserialization.
Definition Struct.hpp:69
Definition CvSource.hpp:15
Represents robot chassis velocities.
Definition ChassisVelocities.hpp:26
static constexpr size_t GetSize()
Definition ChassisVelocitiesStruct.hpp:16
static void Pack(std::span< uint8_t > data, const wpi::math::ChassisVelocities &value)
static wpi::math::ChassisVelocities Unpack(std::span< const uint8_t > data)
static constexpr std::string_view GetSchema()
Definition ChassisVelocitiesStruct.hpp:17
static constexpr std::string_view GetTypeName()
Definition ChassisVelocitiesStruct.hpp:13
Struct serialization template.
Definition Struct.hpp:39