23 units::length::decimeter_t{
static_cast<double>(msg.offset_x.object_distance)},
24 units::length::decimeter_t{
static_cast<double>(msg.offset_y.object_distance)}, std::nullopt};
26 if (msg.presence_vector & msg.HAS_OFFSET_Z) {
27 offset.
offset_z = units::length::decimeter_t{
static_cast<double>(msg.offset_z.object_distance)};
37 units::length::meter_t{
static_cast<double>(msg.offset_x.object_distance)},
38 units::length::meter_t{
static_cast<double>(msg.offset_y.object_distance)}, std::nullopt};
40 if (msg.presence_vector & msg.HAS_OFFSET_Z) {
41 offset.
offset_z = units::length::meter_t{
static_cast<double>(msg.offset_z.object_distance)};
50 return {units::time::millisecond_t{
static_cast<double>(msg.measurement_time_offset)}};
56 return {units::time::second_t{
static_cast<double>(msg.measurement_time_offset)}};
static auto from_msg(const j3224_v2x_msgs::msg::MeasurementTimeOffset &msg) -> MeasurementTimeOffset
static auto from_msg(const j3224_v2x_msgs::msg::PositionOffsetXYZ &msg) -> PositionOffsetXYZ
std::optional< units::length::decimeter_t > offset_z