include
etsi_its_cam_ts_conversion
convertVehicleLength.h
Go to the documentation of this file.
1
56
#pragma once
57
58
#include <
etsi_its_cam_ts_coding/cam_ts_VehicleLength.h
>
59
#include <
etsi_its_cam_ts_conversion/convertVehicleLengthConfidenceIndication.h
>
60
#include <
etsi_its_cam_ts_conversion/convertVehicleLengthValue.h
>
61
#ifdef ROS1
62
#include <etsi_its_cam_ts_msgs/VehicleLength.h>
63
namespace
cam_ts_msgs = etsi_its_cam_ts_msgs;
64
#else
65
#include <etsi_its_cam_ts_msgs/msg/vehicle_length.hpp>
66
namespace
cam_ts_msgs = etsi_its_cam_ts_msgs::msg;
67
#endif
68
69
70
namespace
etsi_its_cam_ts_conversion
{
71
72
void
toRos_VehicleLength
(
const
cam_ts_VehicleLength_t
& in, cam_ts_msgs::VehicleLength& out) {
73
toRos_VehicleLengthValue
(in.
vehicleLengthValue
, out.vehicle_length_value);
74
toRos_VehicleLengthConfidenceIndication
(in.
vehicleLengthConfidenceIndication
, out.vehicle_length_confidence_indication);
75
}
76
77
void
toStruct_VehicleLength
(
const
cam_ts_msgs::VehicleLength& in,
cam_ts_VehicleLength_t
& out) {
78
memset(&out, 0,
sizeof
(
cam_ts_VehicleLength_t
));
79
toStruct_VehicleLengthValue
(in.vehicle_length_value, out.
vehicleLengthValue
);
80
toStruct_VehicleLengthConfidenceIndication
(in.vehicle_length_confidence_indication, out.
vehicleLengthConfidenceIndication
);
81
}
82
83
}
etsi_its_cam_ts_conversion::toRos_VehicleLength
void toRos_VehicleLength(const cam_ts_VehicleLength_t &in, cam_ts_msgs::VehicleLength &out)
Definition:
convertVehicleLength.h:72
etsi_its_cam_ts_conversion::toRos_VehicleLengthValue
void toRos_VehicleLengthValue(const cam_ts_VehicleLengthValue_t &in, cam_ts_msgs::VehicleLengthValue &out)
Definition:
convertVehicleLengthValue.h:72
etsi_its_cam_ts_conversion::toStruct_VehicleLengthConfidenceIndication
void toStruct_VehicleLengthConfidenceIndication(const cam_ts_msgs::VehicleLengthConfidenceIndication &in, cam_ts_VehicleLengthConfidenceIndication_t &out)
Definition:
convertVehicleLengthConfidenceIndication.h:80
etsi_its_cam_ts_conversion::toStruct_VehicleLengthValue
void toStruct_VehicleLengthValue(const cam_ts_msgs::VehicleLengthValue &in, cam_ts_VehicleLengthValue_t &out)
Definition:
convertVehicleLengthValue.h:76
convertVehicleLengthConfidenceIndication.h
cam_ts_VehicleLength
cam_ts_VehicleLength::vehicleLengthValue
cam_ts_VehicleLengthValue_t vehicleLengthValue
cam_ts_VehicleLength.h
etsi_its_cam_ts_conversion
Definition:
convertAccelerationComponent.h:69
cam_ts_VehicleLength::vehicleLengthConfidenceIndication
cam_ts_VehicleLengthConfidenceIndication_t vehicleLengthConfidenceIndication
etsi_its_cam_ts_conversion::toRos_VehicleLengthConfidenceIndication
void toRos_VehicleLengthConfidenceIndication(const cam_ts_VehicleLengthConfidenceIndication_t &in, cam_ts_msgs::VehicleLengthConfidenceIndication &out)
Definition:
convertVehicleLengthConfidenceIndication.h:76
etsi_its_cam_ts_conversion::toStruct_VehicleLength
void toStruct_VehicleLength(const cam_ts_msgs::VehicleLength &in, cam_ts_VehicleLength_t &out)
Definition:
convertVehicleLength.h:77
convertVehicleLengthValue.h
etsi_its_cam_ts_conversion
Author(s): Jean-Pierre Busch
, Guido Küppers
, Lennart Reiher
autogenerated on Sun May 18 2025 02:28:52