convertCenDsrcTollingZone.h
Go to the documentation of this file.
1 
59 #pragma once
60 
65 #ifdef ROS1
66 #include <etsi_its_cam_ts_msgs/CenDsrcTollingZone.h>
67 namespace cam_ts_msgs = etsi_its_cam_ts_msgs;
68 #else
69 #include <etsi_its_cam_ts_msgs/msg/cen_dsrc_tolling_zone.hpp>
70 namespace cam_ts_msgs = etsi_its_cam_ts_msgs::msg;
71 #endif
72 
73 
75 
76 void toRos_CenDsrcTollingZone(const cam_ts_CenDsrcTollingZone_t& in, cam_ts_msgs::CenDsrcTollingZone& out) {
77  toRos_Latitude(in.protectedZoneLatitude, out.protected_zone_latitude);
78  toRos_Longitude(in.protectedZoneLongitude, out.protected_zone_longitude);
79  if (in.cenDsrcTollingZoneId) {
80  toRos_ProtectedZoneId(*in.cenDsrcTollingZoneId, out.cen_dsrc_tolling_zone_id);
81  out.cen_dsrc_tolling_zone_id_is_present = true;
82  }
83 }
84 
85 void toStruct_CenDsrcTollingZone(const cam_ts_msgs::CenDsrcTollingZone& in, cam_ts_CenDsrcTollingZone_t& out) {
86  memset(&out, 0, sizeof(cam_ts_CenDsrcTollingZone_t));
87  toStruct_Latitude(in.protected_zone_latitude, out.protectedZoneLatitude);
88  toStruct_Longitude(in.protected_zone_longitude, out.protectedZoneLongitude);
89  if (in.cen_dsrc_tolling_zone_id_is_present) {
91  toStruct_ProtectedZoneId(in.cen_dsrc_tolling_zone_id, *out.cenDsrcTollingZoneId);
92  }
93 }
94 
95 }
cam_ts_CenDsrcTollingZone::cenDsrcTollingZoneId
cam_ts_ProtectedZoneId_t * cenDsrcTollingZoneId
convertProtectedZoneId.h
etsi_its_cam_ts_conversion::toStruct_CenDsrcTollingZone
void toStruct_CenDsrcTollingZone(const cam_ts_msgs::CenDsrcTollingZone &in, cam_ts_CenDsrcTollingZone_t &out)
Definition: convertCenDsrcTollingZone.h:85
etsi_its_cam_ts_conversion::toStruct_Latitude
void toStruct_Latitude(const cam_ts_msgs::Latitude &in, cam_ts_Latitude_t &out)
Definition: convertLatitude.h:77
etsi_its_cam_ts_conversion::toRos_Longitude
void toRos_Longitude(const cam_ts_Longitude_t &in, cam_ts_msgs::Longitude &out)
Definition: convertLongitude.h:76
etsi_its_cam_ts_conversion
Definition: convertAccelerationComponent.h:69
etsi_its_cam_ts_conversion::toRos_ProtectedZoneId
void toRos_ProtectedZoneId(const cam_ts_ProtectedZoneId_t &in, cam_ts_msgs::ProtectedZoneId &out)
Definition: convertProtectedZoneId.h:63
cam_ts_CenDsrcTollingZone
convertLongitude.h
etsi_its_cam_ts_conversion::toStruct_Longitude
void toStruct_Longitude(const cam_ts_msgs::Longitude &in, cam_ts_Longitude_t &out)
Definition: convertLongitude.h:80
etsi_its_cam_ts_conversion::toStruct_ProtectedZoneId
void toStruct_ProtectedZoneId(const cam_ts_msgs::ProtectedZoneId &in, cam_ts_ProtectedZoneId_t &out)
Definition: convertProtectedZoneId.h:67
etsi_its_cam_ts_conversion::toRos_CenDsrcTollingZone
void toRos_CenDsrcTollingZone(const cam_ts_CenDsrcTollingZone_t &in, cam_ts_msgs::CenDsrcTollingZone &out)
Definition: convertCenDsrcTollingZone.h:76
convertLatitude.h
cam_ts_CenDsrcTollingZone.h
etsi_its_cam_ts_conversion::toRos_Latitude
void toRos_Latitude(const cam_ts_Latitude_t &in, cam_ts_msgs::Latitude &out)
Definition: convertLatitude.h:73
cam_ts_ProtectedZoneId_t
long cam_ts_ProtectedZoneId_t
cam_ts_CenDsrcTollingZone::protectedZoneLatitude
cam_ts_Latitude_t protectedZoneLatitude
cam_ts_CenDsrcTollingZone::protectedZoneLongitude
cam_ts_Longitude_t protectedZoneLongitude


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