convertVehicleLength.h
Go to the documentation of this file.
1 
43 #pragma once
44 
48 #ifdef ROS1
49 #include <etsi_its_cam_msgs/VehicleLength.h>
50 namespace cam_msgs = etsi_its_cam_msgs;
51 #else
52 #include <etsi_its_cam_msgs/msg/vehicle_length.hpp>
53 namespace cam_msgs = etsi_its_cam_msgs::msg;
54 #endif
55 
56 
57 namespace etsi_its_cam_conversion {
58 
59 void toRos_VehicleLength(const cam_VehicleLength_t& in, cam_msgs::VehicleLength& out) {
60  toRos_VehicleLengthValue(in.vehicleLengthValue, out.vehicle_length_value);
61  toRos_VehicleLengthConfidenceIndication(in.vehicleLengthConfidenceIndication, out.vehicle_length_confidence_indication);
62 }
63 
64 void toStruct_VehicleLength(const cam_msgs::VehicleLength& in, cam_VehicleLength_t& out) {
65  memset(&out, 0, sizeof(cam_VehicleLength_t));
66  toStruct_VehicleLengthValue(in.vehicle_length_value, out.vehicleLengthValue);
67  toStruct_VehicleLengthConfidenceIndication(in.vehicle_length_confidence_indication, out.vehicleLengthConfidenceIndication);
68 }
69 
70 }
cam_VehicleLength::vehicleLengthValue
cam_VehicleLengthValue_t vehicleLengthValue
etsi_its_cam_conversion::toRos_VehicleLengthValue
void toRos_VehicleLengthValue(const cam_VehicleLengthValue_t &in, cam_msgs::VehicleLengthValue &out)
Definition: convertVehicleLengthValue.h:56
etsi_its_cam_conversion
Definition: convertAccelerationConfidence.h:54
cam_VehicleLength::vehicleLengthConfidenceIndication
cam_VehicleLengthConfidenceIndication_t vehicleLengthConfidenceIndication
etsi_its_cam_conversion::toStruct_VehicleLengthValue
void toStruct_VehicleLengthValue(const cam_msgs::VehicleLengthValue &in, cam_VehicleLengthValue_t &out)
Definition: convertVehicleLengthValue.h:60
convertVehicleLengthConfidenceIndication.h
etsi_its_cam_conversion::toStruct_VehicleLengthConfidenceIndication
void toStruct_VehicleLengthConfidenceIndication(const cam_msgs::VehicleLengthConfidenceIndication &in, cam_VehicleLengthConfidenceIndication_t &out)
Definition: convertVehicleLengthConfidenceIndication.h:59
cam_VehicleLength.h
convertVehicleLengthValue.h
etsi_its_cam_conversion::toRos_VehicleLength
void toRos_VehicleLength(const cam_VehicleLength_t &in, cam_msgs::VehicleLength &out)
Definition: convertVehicleLength.h:59
etsi_its_cam_conversion::toStruct_VehicleLength
void toStruct_VehicleLength(const cam_msgs::VehicleLength &in, cam_VehicleLength_t &out)
Definition: convertVehicleLength.h:64
cam_VehicleLength
etsi_its_cam_conversion::toRos_VehicleLengthConfidenceIndication
void toRos_VehicleLengthConfidenceIndication(const cam_VehicleLengthConfidenceIndication_t &in, cam_msgs::VehicleLengthConfidenceIndication &out)
Definition: convertVehicleLengthConfidenceIndication.h:55


etsi_its_cam_conversion
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:28:48