convertDecentralizedEnvironmentalNotificationMessage.h
Go to the documentation of this file.
1 
45 #pragma once
46 
52 #ifdef ROS1
53 #include <etsi_its_denm_msgs/DecentralizedEnvironmentalNotificationMessage.h>
54 namespace denm_msgs = etsi_its_denm_msgs;
55 #else
56 #include <etsi_its_denm_msgs/msg/decentralized_environmental_notification_message.hpp>
57 namespace denm_msgs = etsi_its_denm_msgs::msg;
58 #endif
59 
60 
61 namespace etsi_its_denm_conversion {
62 
63 void toRos_DecentralizedEnvironmentalNotificationMessage(const denm_DecentralizedEnvironmentalNotificationMessage_t& in, denm_msgs::DecentralizedEnvironmentalNotificationMessage& out) {
64  toRos_ManagementContainer(in.management, out.management);
65  if (in.situation) {
66  toRos_SituationContainer(*in.situation, out.situation);
67  out.situation_is_present = true;
68  }
69  if (in.location) {
70  toRos_LocationContainer(*in.location, out.location);
71  out.location_is_present = true;
72  }
73  if (in.alacarte) {
74  toRos_AlacarteContainer(*in.alacarte, out.alacarte);
75  out.alacarte_is_present = true;
76  }
77 }
78 
79 void toStruct_DecentralizedEnvironmentalNotificationMessage(const denm_msgs::DecentralizedEnvironmentalNotificationMessage& in, denm_DecentralizedEnvironmentalNotificationMessage_t& out) {
81  toStruct_ManagementContainer(in.management, out.management);
82  if (in.situation_is_present) {
84  toStruct_SituationContainer(in.situation, *out.situation);
85  }
86  if (in.location_is_present) {
88  toStruct_LocationContainer(in.location, *out.location);
89  }
90  if (in.alacarte_is_present) {
92  toStruct_AlacarteContainer(in.alacarte, *out.alacarte);
93  }
94 }
95 
96 }
etsi_its_denm_conversion::toStruct_ManagementContainer
void toStruct_ManagementContainer(const denm_msgs::ManagementContainer &in, denm_ManagementContainer_t &out)
Definition: convertManagementContainer.h:102
denm_SituationContainer
etsi_its_denm_conversion::toStruct_LocationContainer
void toStruct_LocationContainer(const denm_msgs::LocationContainer &in, denm_LocationContainer_t &out)
Definition: convertLocationContainer.h:80
etsi_its_denm_conversion::toRos_DecentralizedEnvironmentalNotificationMessage
void toRos_DecentralizedEnvironmentalNotificationMessage(const denm_DecentralizedEnvironmentalNotificationMessage_t &in, denm_msgs::DecentralizedEnvironmentalNotificationMessage &out)
Definition: convertDecentralizedEnvironmentalNotificationMessage.h:63
etsi_its_denm_conversion::toStruct_SituationContainer
void toStruct_SituationContainer(const denm_msgs::SituationContainer &in, denm_SituationContainer_t &out)
Definition: convertSituationContainer.h:76
denm_DecentralizedEnvironmentalNotificationMessage::location
struct denm_LocationContainer * location
convertAlacarteContainer.h
etsi_its_denm_conversion::toRos_SituationContainer
void toRos_SituationContainer(const denm_SituationContainer_t &in, denm_msgs::SituationContainer &out)
Definition: convertSituationContainer.h:63
convertSituationContainer.h
convertManagementContainer.h
denm_DecentralizedEnvironmentalNotificationMessage::situation
struct denm_SituationContainer * situation
denm_AlacarteContainer
denm_LocationContainer
etsi_its_denm_conversion::toStruct_DecentralizedEnvironmentalNotificationMessage
void toStruct_DecentralizedEnvironmentalNotificationMessage(const denm_msgs::DecentralizedEnvironmentalNotificationMessage &in, denm_DecentralizedEnvironmentalNotificationMessage_t &out)
Definition: convertDecentralizedEnvironmentalNotificationMessage.h:79
etsi_its_denm_conversion::toRos_ManagementContainer
void toRos_ManagementContainer(const denm_ManagementContainer_t &in, denm_msgs::ManagementContainer &out)
Definition: convertManagementContainer.h:75
denm_DecentralizedEnvironmentalNotificationMessage::management
denm_ManagementContainer_t management
etsi_its_denm_conversion::toStruct_AlacarteContainer
void toStruct_AlacarteContainer(const denm_msgs::AlacarteContainer &in, denm_AlacarteContainer_t &out)
Definition: convertAlacarteContainer.h:95
denm_DecentralizedEnvironmentalNotificationMessage::alacarte
struct denm_AlacarteContainer * alacarte
etsi_its_denm_conversion
Definition: convertAccidentSubCauseCode.h:54
denm_DecentralizedEnvironmentalNotificationMessage
etsi_its_denm_conversion::toRos_AlacarteContainer
void toRos_AlacarteContainer(const denm_AlacarteContainer_t &in, denm_msgs::AlacarteContainer &out)
Definition: convertAlacarteContainer.h:68
denm_DecentralizedEnvironmentalNotificationMessage.h
etsi_its_denm_conversion::toRos_LocationContainer
void toRos_LocationContainer(const denm_LocationContainer_t &in, denm_msgs::LocationContainer &out)
Definition: convertLocationContainer.h:64
convertLocationContainer.h


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