mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -6,22 +6,22 @@
|
||||
|
||||
namespace {
|
||||
constexpr size_t kCenterOff = 0;
|
||||
constexpr size_t kXSemiAxisOff = kCenterOff + wpi::GetStructSize<frc::Pose2d>();
|
||||
constexpr size_t kXSemiAxisOff = kCenterOff + wpi::util::GetStructSize<wpi::math::Pose2d>();
|
||||
constexpr size_t kYSemiAxisOff = kXSemiAxisOff + 8;
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Ellipse2d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Ellipse2d>;
|
||||
|
||||
frc::Ellipse2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Ellipse2d{
|
||||
wpi::UnpackStruct<frc::Pose2d, kCenterOff>(data),
|
||||
units::meter_t{wpi::UnpackStruct<double, kXSemiAxisOff>(data)},
|
||||
units::meter_t{wpi::UnpackStruct<double, kYSemiAxisOff>(data)},
|
||||
wpi::math::Ellipse2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Ellipse2d{
|
||||
wpi::util::UnpackStruct<wpi::math::Pose2d, kCenterOff>(data),
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kXSemiAxisOff>(data)},
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kYSemiAxisOff>(data)},
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Ellipse2d& value) {
|
||||
wpi::PackStruct<kCenterOff>(data, value.Center());
|
||||
wpi::PackStruct<kXSemiAxisOff>(data, value.XSemiAxis().value());
|
||||
wpi::PackStruct<kYSemiAxisOff>(data, value.YSemiAxis().value());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Ellipse2d& value) {
|
||||
wpi::util::PackStruct<kCenterOff>(data, value.Center());
|
||||
wpi::util::PackStruct<kXSemiAxisOff>(data, value.XSemiAxis().value());
|
||||
wpi::util::PackStruct<kYSemiAxisOff>(data, value.YSemiAxis().value());
|
||||
}
|
||||
|
||||
@@ -7,19 +7,19 @@
|
||||
namespace {
|
||||
constexpr size_t kTranslationOff = 0;
|
||||
constexpr size_t kRotationOff =
|
||||
kTranslationOff + wpi::GetStructSize<frc::Translation2d>();
|
||||
kTranslationOff + wpi::util::GetStructSize<wpi::math::Translation2d>();
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Pose2d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Pose2d>;
|
||||
|
||||
frc::Pose2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Pose2d{
|
||||
wpi::UnpackStruct<frc::Translation2d, kTranslationOff>(data),
|
||||
wpi::UnpackStruct<frc::Rotation2d, kRotationOff>(data),
|
||||
wpi::math::Pose2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Pose2d{
|
||||
wpi::util::UnpackStruct<wpi::math::Translation2d, kTranslationOff>(data),
|
||||
wpi::util::UnpackStruct<wpi::math::Rotation2d, kRotationOff>(data),
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Pose2d& value) {
|
||||
wpi::PackStruct<kTranslationOff>(data, value.Translation());
|
||||
wpi::PackStruct<kRotationOff>(data, value.Rotation());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Pose2d& value) {
|
||||
wpi::util::PackStruct<kTranslationOff>(data, value.Translation());
|
||||
wpi::util::PackStruct<kRotationOff>(data, value.Rotation());
|
||||
}
|
||||
|
||||
@@ -7,19 +7,19 @@
|
||||
namespace {
|
||||
constexpr size_t kTranslationOff = 0;
|
||||
constexpr size_t kRotationOff =
|
||||
kTranslationOff + wpi::GetStructSize<frc::Translation3d>();
|
||||
kTranslationOff + wpi::util::GetStructSize<wpi::math::Translation3d>();
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Pose3d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Pose3d>;
|
||||
|
||||
frc::Pose3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Pose3d{
|
||||
wpi::UnpackStruct<frc::Translation3d, kTranslationOff>(data),
|
||||
wpi::UnpackStruct<frc::Rotation3d, kRotationOff>(data),
|
||||
wpi::math::Pose3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Pose3d{
|
||||
wpi::util::UnpackStruct<wpi::math::Translation3d, kTranslationOff>(data),
|
||||
wpi::util::UnpackStruct<wpi::math::Rotation3d, kRotationOff>(data),
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Pose3d& value) {
|
||||
wpi::PackStruct<kTranslationOff>(data, value.Translation());
|
||||
wpi::PackStruct<kRotationOff>(data, value.Rotation());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Pose3d& value) {
|
||||
wpi::util::PackStruct<kTranslationOff>(data, value.Translation());
|
||||
wpi::util::PackStruct<kRotationOff>(data, value.Rotation());
|
||||
}
|
||||
|
||||
@@ -11,20 +11,20 @@ constexpr size_t kYOff = kXOff + 8;
|
||||
constexpr size_t kZOff = kYOff + 8;
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Quaternion>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Quaternion>;
|
||||
|
||||
frc::Quaternion StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Quaternion{
|
||||
wpi::UnpackStruct<double, kWOff>(data),
|
||||
wpi::UnpackStruct<double, kXOff>(data),
|
||||
wpi::UnpackStruct<double, kYOff>(data),
|
||||
wpi::UnpackStruct<double, kZOff>(data),
|
||||
wpi::math::Quaternion StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Quaternion{
|
||||
wpi::util::UnpackStruct<double, kWOff>(data),
|
||||
wpi::util::UnpackStruct<double, kXOff>(data),
|
||||
wpi::util::UnpackStruct<double, kYOff>(data),
|
||||
wpi::util::UnpackStruct<double, kZOff>(data),
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Quaternion& value) {
|
||||
wpi::PackStruct<kWOff>(data, value.W());
|
||||
wpi::PackStruct<kXOff>(data, value.X());
|
||||
wpi::PackStruct<kYOff>(data, value.Y());
|
||||
wpi::PackStruct<kZOff>(data, value.Z());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Quaternion& value) {
|
||||
wpi::util::PackStruct<kWOff>(data, value.W());
|
||||
wpi::util::PackStruct<kXOff>(data, value.X());
|
||||
wpi::util::PackStruct<kYOff>(data, value.Y());
|
||||
wpi::util::PackStruct<kZOff>(data, value.Z());
|
||||
}
|
||||
|
||||
@@ -6,22 +6,22 @@
|
||||
|
||||
namespace {
|
||||
constexpr size_t kCenterOff = 0;
|
||||
constexpr size_t kXWidthOff = kCenterOff + wpi::GetStructSize<frc::Pose2d>();
|
||||
constexpr size_t kXWidthOff = kCenterOff + wpi::util::GetStructSize<wpi::math::Pose2d>();
|
||||
constexpr size_t kYWidthOff = kXWidthOff + 8;
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Rectangle2d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Rectangle2d>;
|
||||
|
||||
frc::Rectangle2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Rectangle2d{
|
||||
wpi::UnpackStruct<frc::Pose2d, kCenterOff>(data),
|
||||
units::meter_t{wpi::UnpackStruct<double, kXWidthOff>(data)},
|
||||
units::meter_t{wpi::UnpackStruct<double, kYWidthOff>(data)},
|
||||
wpi::math::Rectangle2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Rectangle2d{
|
||||
wpi::util::UnpackStruct<wpi::math::Pose2d, kCenterOff>(data),
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kXWidthOff>(data)},
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kYWidthOff>(data)},
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Rectangle2d& value) {
|
||||
wpi::PackStruct<kCenterOff>(data, value.Center());
|
||||
wpi::PackStruct<kXWidthOff>(data, value.XWidth().value());
|
||||
wpi::PackStruct<kYWidthOff>(data, value.YWidth().value());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Rectangle2d& value) {
|
||||
wpi::util::PackStruct<kCenterOff>(data, value.Center());
|
||||
wpi::util::PackStruct<kXWidthOff>(data, value.XWidth().value());
|
||||
wpi::util::PackStruct<kYWidthOff>(data, value.YWidth().value());
|
||||
}
|
||||
|
||||
@@ -8,14 +8,14 @@ namespace {
|
||||
constexpr size_t kValueOff = 0;
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Rotation2d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Rotation2d>;
|
||||
|
||||
frc::Rotation2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Rotation2d{
|
||||
units::radian_t{wpi::UnpackStruct<double, kValueOff>(data)},
|
||||
wpi::math::Rotation2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Rotation2d{
|
||||
wpi::units::radian_t{wpi::util::UnpackStruct<double, kValueOff>(data)},
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Rotation2d& value) {
|
||||
wpi::PackStruct<kValueOff>(data, value.Radians().value());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Rotation2d& value) {
|
||||
wpi::util::PackStruct<kValueOff>(data, value.Radians().value());
|
||||
}
|
||||
|
||||
@@ -8,14 +8,14 @@ namespace {
|
||||
constexpr size_t kQOff = 0;
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Rotation3d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Rotation3d>;
|
||||
|
||||
frc::Rotation3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Rotation3d{
|
||||
wpi::UnpackStruct<frc::Quaternion, kQOff>(data),
|
||||
wpi::math::Rotation3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Rotation3d{
|
||||
wpi::util::UnpackStruct<wpi::math::Quaternion, kQOff>(data),
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Rotation3d& value) {
|
||||
wpi::PackStruct<kQOff>(data, value.GetQuaternion());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Rotation3d& value) {
|
||||
wpi::util::PackStruct<kQOff>(data, value.GetQuaternion());
|
||||
}
|
||||
|
||||
@@ -7,19 +7,19 @@
|
||||
namespace {
|
||||
constexpr size_t kTranslationOff = 0;
|
||||
constexpr size_t kRotationOff =
|
||||
kTranslationOff + wpi::GetStructSize<frc::Translation2d>();
|
||||
kTranslationOff + wpi::util::GetStructSize<wpi::math::Translation2d>();
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Transform2d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Transform2d>;
|
||||
|
||||
frc::Transform2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Transform2d{
|
||||
wpi::UnpackStruct<frc::Translation2d, kTranslationOff>(data),
|
||||
wpi::UnpackStruct<frc::Rotation2d, kRotationOff>(data),
|
||||
wpi::math::Transform2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Transform2d{
|
||||
wpi::util::UnpackStruct<wpi::math::Translation2d, kTranslationOff>(data),
|
||||
wpi::util::UnpackStruct<wpi::math::Rotation2d, kRotationOff>(data),
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Transform2d& value) {
|
||||
wpi::PackStruct<kTranslationOff>(data, value.Translation());
|
||||
wpi::PackStruct<kRotationOff>(data, value.Rotation());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Transform2d& value) {
|
||||
wpi::util::PackStruct<kTranslationOff>(data, value.Translation());
|
||||
wpi::util::PackStruct<kRotationOff>(data, value.Rotation());
|
||||
}
|
||||
|
||||
@@ -7,19 +7,19 @@
|
||||
namespace {
|
||||
constexpr size_t kTranslationOff = 0;
|
||||
constexpr size_t kRotationOff =
|
||||
kTranslationOff + wpi::GetStructSize<frc::Translation3d>();
|
||||
kTranslationOff + wpi::util::GetStructSize<wpi::math::Translation3d>();
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Transform3d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Transform3d>;
|
||||
|
||||
frc::Transform3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Transform3d{
|
||||
wpi::UnpackStruct<frc::Translation3d, kTranslationOff>(data),
|
||||
wpi::UnpackStruct<frc::Rotation3d, kRotationOff>(data),
|
||||
wpi::math::Transform3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Transform3d{
|
||||
wpi::util::UnpackStruct<wpi::math::Translation3d, kTranslationOff>(data),
|
||||
wpi::util::UnpackStruct<wpi::math::Rotation3d, kRotationOff>(data),
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Transform3d& value) {
|
||||
wpi::PackStruct<kTranslationOff>(data, value.Translation());
|
||||
wpi::PackStruct<kRotationOff>(data, value.Rotation());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Transform3d& value) {
|
||||
wpi::util::PackStruct<kTranslationOff>(data, value.Translation());
|
||||
wpi::util::PackStruct<kRotationOff>(data, value.Rotation());
|
||||
}
|
||||
|
||||
@@ -9,17 +9,17 @@ constexpr size_t kXOff = 0;
|
||||
constexpr size_t kYOff = kXOff + 8;
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Translation2d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Translation2d>;
|
||||
|
||||
frc::Translation2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Translation2d{
|
||||
units::meter_t{wpi::UnpackStruct<double, kXOff>(data)},
|
||||
units::meter_t{wpi::UnpackStruct<double, kYOff>(data)},
|
||||
wpi::math::Translation2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Translation2d{
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kXOff>(data)},
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kYOff>(data)},
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data,
|
||||
const frc::Translation2d& value) {
|
||||
wpi::PackStruct<kXOff>(data, value.X().value());
|
||||
wpi::PackStruct<kYOff>(data, value.Y().value());
|
||||
const wpi::math::Translation2d& value) {
|
||||
wpi::util::PackStruct<kXOff>(data, value.X().value());
|
||||
wpi::util::PackStruct<kYOff>(data, value.Y().value());
|
||||
}
|
||||
|
||||
@@ -10,19 +10,19 @@ constexpr size_t kYOff = kXOff + 8;
|
||||
constexpr size_t kZOff = kYOff + 8;
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Translation3d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Translation3d>;
|
||||
|
||||
frc::Translation3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Translation3d{
|
||||
units::meter_t{wpi::UnpackStruct<double, kXOff>(data)},
|
||||
units::meter_t{wpi::UnpackStruct<double, kYOff>(data)},
|
||||
units::meter_t{wpi::UnpackStruct<double, kZOff>(data)},
|
||||
wpi::math::Translation3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Translation3d{
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kXOff>(data)},
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kYOff>(data)},
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kZOff>(data)},
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data,
|
||||
const frc::Translation3d& value) {
|
||||
wpi::PackStruct<kXOff>(data, value.X().value());
|
||||
wpi::PackStruct<kYOff>(data, value.Y().value());
|
||||
wpi::PackStruct<kZOff>(data, value.Z().value());
|
||||
const wpi::math::Translation3d& value) {
|
||||
wpi::util::PackStruct<kXOff>(data, value.X().value());
|
||||
wpi::util::PackStruct<kYOff>(data, value.Y().value());
|
||||
wpi::util::PackStruct<kZOff>(data, value.Z().value());
|
||||
}
|
||||
|
||||
@@ -10,18 +10,18 @@ constexpr size_t kDyOff = kDxOff + 8;
|
||||
constexpr size_t kDthetaOff = kDyOff + 8;
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Twist2d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Twist2d>;
|
||||
|
||||
frc::Twist2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Twist2d{
|
||||
units::meter_t{wpi::UnpackStruct<double, kDxOff>(data)},
|
||||
units::meter_t{wpi::UnpackStruct<double, kDyOff>(data)},
|
||||
units::radian_t{wpi::UnpackStruct<double, kDthetaOff>(data)},
|
||||
wpi::math::Twist2d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Twist2d{
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kDxOff>(data)},
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kDyOff>(data)},
|
||||
wpi::units::radian_t{wpi::util::UnpackStruct<double, kDthetaOff>(data)},
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Twist2d& value) {
|
||||
wpi::PackStruct<kDxOff>(data, value.dx.value());
|
||||
wpi::PackStruct<kDyOff>(data, value.dy.value());
|
||||
wpi::PackStruct<kDthetaOff>(data, value.dtheta.value());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Twist2d& value) {
|
||||
wpi::util::PackStruct<kDxOff>(data, value.dx.value());
|
||||
wpi::util::PackStruct<kDyOff>(data, value.dy.value());
|
||||
wpi::util::PackStruct<kDthetaOff>(data, value.dtheta.value());
|
||||
}
|
||||
|
||||
@@ -13,24 +13,24 @@ constexpr size_t kRyOff = kRxOff + 8;
|
||||
constexpr size_t kRzOff = kRyOff + 8;
|
||||
} // namespace
|
||||
|
||||
using StructType = wpi::Struct<frc::Twist3d>;
|
||||
using StructType = wpi::util::Struct<wpi::math::Twist3d>;
|
||||
|
||||
frc::Twist3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return frc::Twist3d{
|
||||
units::meter_t{wpi::UnpackStruct<double, kDxOff>(data)},
|
||||
units::meter_t{wpi::UnpackStruct<double, kDyOff>(data)},
|
||||
units::meter_t{wpi::UnpackStruct<double, kDzOff>(data)},
|
||||
units::radian_t{wpi::UnpackStruct<double, kRxOff>(data)},
|
||||
units::radian_t{wpi::UnpackStruct<double, kRyOff>(data)},
|
||||
units::radian_t{wpi::UnpackStruct<double, kRzOff>(data)},
|
||||
wpi::math::Twist3d StructType::Unpack(std::span<const uint8_t> data) {
|
||||
return wpi::math::Twist3d{
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kDxOff>(data)},
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kDyOff>(data)},
|
||||
wpi::units::meter_t{wpi::util::UnpackStruct<double, kDzOff>(data)},
|
||||
wpi::units::radian_t{wpi::util::UnpackStruct<double, kRxOff>(data)},
|
||||
wpi::units::radian_t{wpi::util::UnpackStruct<double, kRyOff>(data)},
|
||||
wpi::units::radian_t{wpi::util::UnpackStruct<double, kRzOff>(data)},
|
||||
};
|
||||
}
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data, const frc::Twist3d& value) {
|
||||
wpi::PackStruct<kDxOff>(data, value.dx.value());
|
||||
wpi::PackStruct<kDyOff>(data, value.dy.value());
|
||||
wpi::PackStruct<kDzOff>(data, value.dz.value());
|
||||
wpi::PackStruct<kRxOff>(data, value.rx.value());
|
||||
wpi::PackStruct<kRyOff>(data, value.ry.value());
|
||||
wpi::PackStruct<kRzOff>(data, value.rz.value());
|
||||
void StructType::Pack(std::span<uint8_t> data, const wpi::math::Twist3d& value) {
|
||||
wpi::util::PackStruct<kDxOff>(data, value.dx.value());
|
||||
wpi::util::PackStruct<kDyOff>(data, value.dy.value());
|
||||
wpi::util::PackStruct<kDzOff>(data, value.dz.value());
|
||||
wpi::util::PackStruct<kRxOff>(data, value.rx.value());
|
||||
wpi::util::PackStruct<kRyOff>(data, value.ry.value());
|
||||
wpi::util::PackStruct<kRzOff>(data, value.rz.value());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user