convertVehicleIdentification.h
Go to the documentation of this file.
1 
44 #pragma once
45 
49 #ifdef ROS1
50 #include <etsi_its_denm_msgs/VehicleIdentification.h>
51 namespace denm_msgs = etsi_its_denm_msgs;
52 #else
53 #include <etsi_its_denm_msgs/msg/vehicle_identification.hpp>
54 namespace denm_msgs = etsi_its_denm_msgs::msg;
55 #endif
56 
57 
58 namespace etsi_its_denm_conversion {
59 
60 void toRos_VehicleIdentification(const denm_VehicleIdentification_t& in, denm_msgs::VehicleIdentification& out) {
61  if (in.wMInumber) {
62  toRos_WMInumber(*in.wMInumber, out.w_m_inumber);
63  out.w_m_inumber_is_present = true;
64  }
65  if (in.vDS) {
66  toRos_VDS(*in.vDS, out.v_ds);
67  out.v_ds_is_present = true;
68  }
69 }
70 
71 void toStruct_VehicleIdentification(const denm_msgs::VehicleIdentification& in, denm_VehicleIdentification_t& out) {
72  memset(&out, 0, sizeof(denm_VehicleIdentification_t));
73  if (in.w_m_inumber_is_present) {
74  out.wMInumber = (denm_WMInumber_t*) calloc(1, sizeof(denm_WMInumber_t));
75  toStruct_WMInumber(in.w_m_inumber, *out.wMInumber);
76  }
77  if (in.v_ds_is_present) {
78  out.vDS = (denm_VDS_t*) calloc(1, sizeof(denm_VDS_t));
79  toStruct_VDS(in.v_ds, *out.vDS);
80  }
81 }
82 
83 }
etsi_its_denm_conversion::toRos_WMInumber
void toRos_WMInumber(const denm_WMInumber_t &in, denm_msgs::WMInumber &out)
Definition: convertWMInumber.h:56
etsi_its_denm_conversion::toStruct_VehicleIdentification
void toStruct_VehicleIdentification(const denm_msgs::VehicleIdentification &in, denm_VehicleIdentification_t &out)
Definition: convertVehicleIdentification.h:71
etsi_its_denm_conversion::toStruct_WMInumber
void toStruct_WMInumber(const denm_msgs::WMInumber &in, denm_WMInumber_t &out)
Definition: convertWMInumber.h:60
denm_VehicleIdentification::vDS
denm_VDS_t * vDS
etsi_its_denm_conversion::toRos_VehicleIdentification
void toRos_VehicleIdentification(const denm_VehicleIdentification_t &in, denm_msgs::VehicleIdentification &out)
Definition: convertVehicleIdentification.h:60
convertWMInumber.h
etsi_its_denm_conversion::toRos_VDS
void toRos_VDS(const denm_VDS_t &in, denm_msgs::VDS &out)
Definition: convertVDS.h:56
convertVDS.h
etsi_its_denm_conversion::toStruct_VDS
void toStruct_VDS(const denm_msgs::VDS &in, denm_VDS_t &out)
Definition: convertVDS.h:60
denm_VehicleIdentification::wMInumber
denm_WMInumber_t * wMInumber
OCTET_STRING
denm_VehicleIdentification.h
etsi_its_denm_conversion
Definition: convertAccidentSubCauseCode.h:54
denm_VehicleIdentification


etsi_its_denm_conversion
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:29:03