convertVehicleIdentification.h
Go to the documentation of this file.
1 
56 #pragma once
57 
61 #ifdef ROS1
62 #include <etsi_its_denm_ts_msgs/VehicleIdentification.h>
63 namespace denm_ts_msgs = etsi_its_denm_ts_msgs;
64 #else
65 #include <etsi_its_denm_ts_msgs/msg/vehicle_identification.hpp>
66 namespace denm_ts_msgs = etsi_its_denm_ts_msgs::msg;
67 #endif
68 
69 
71 
72 void toRos_VehicleIdentification(const denm_ts_VehicleIdentification_t& in, denm_ts_msgs::VehicleIdentification& out) {
73  if (in.wMInumber) {
74  toRos_WMInumber(*in.wMInumber, out.w_m_inumber);
75  out.w_m_inumber_is_present = true;
76  }
77  if (in.vDS) {
78  toRos_VDS(*in.vDS, out.v_ds);
79  out.v_ds_is_present = true;
80  }
81 }
82 
83 void toStruct_VehicleIdentification(const denm_ts_msgs::VehicleIdentification& in, denm_ts_VehicleIdentification_t& out) {
84  memset(&out, 0, sizeof(denm_ts_VehicleIdentification_t));
85  if (in.w_m_inumber_is_present) {
86  out.wMInumber = (denm_ts_WMInumber_t*) calloc(1, sizeof(denm_ts_WMInumber_t));
87  toStruct_WMInumber(in.w_m_inumber, *out.wMInumber);
88  }
89  if (in.v_ds_is_present) {
90  out.vDS = (denm_ts_VDS_t*) calloc(1, sizeof(denm_ts_VDS_t));
91  toStruct_VDS(in.v_ds, *out.vDS);
92  }
93 }
94 
95 }
etsi_its_denm_ts_conversion::toStruct_VDS
void toStruct_VDS(const denm_ts_msgs::VDS &in, denm_ts_VDS_t &out)
Definition: convertVDS.h:66
etsi_its_denm_ts_conversion::toStruct_WMInumber
void toStruct_WMInumber(const denm_ts_msgs::WMInumber &in, denm_ts_WMInumber_t &out)
Definition: convertWMInumber.h:67
etsi_its_denm_ts_conversion::toRos_WMInumber
void toRos_WMInumber(const denm_ts_WMInumber_t &in, denm_ts_msgs::WMInumber &out)
Definition: convertWMInumber.h:63
etsi_its_denm_ts_conversion
Definition: convertAcceleration3dWithConfidence.h:69
convertWMInumber.h
convertVDS.h
denm_ts_VehicleIdentification::vDS
denm_ts_VDS_t * vDS
denm_ts_VehicleIdentification::wMInumber
denm_ts_WMInumber_t * wMInumber
OCTET_STRING
etsi_its_denm_ts_conversion::toStruct_VehicleIdentification
void toStruct_VehicleIdentification(const denm_ts_msgs::VehicleIdentification &in, denm_ts_VehicleIdentification_t &out)
Definition: convertVehicleIdentification.h:83
etsi_its_denm_ts_conversion::toRos_VehicleIdentification
void toRos_VehicleIdentification(const denm_ts_VehicleIdentification_t &in, denm_ts_msgs::VehicleIdentification &out)
Definition: convertVehicleIdentification.h:72
denm_ts_VehicleIdentification
etsi_its_denm_ts_conversion::toRos_VDS
void toRos_VDS(const denm_ts_VDS_t &in, denm_ts_msgs::VDS &out)
Definition: convertVDS.h:62
denm_ts_VehicleIdentification.h


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