convertSuggestedManeuverContainer.h
Go to the documentation of this file.
1 
43 #pragma once
44 
48 #ifdef ROS1
49 #include <etsi_its_mcm_uulm_msgs/SuggestedManeuverContainer.h>
50 namespace mcm_uulm_msgs = etsi_its_mcm_uulm_msgs;
51 #else
52 #include <etsi_its_mcm_uulm_msgs/msg/suggested_maneuver_container.hpp>
53 namespace mcm_uulm_msgs = etsi_its_mcm_uulm_msgs::msg;
54 #endif
55 
56 
58 
59 void toRos_SuggestedManeuverContainer(const mcm_uulm_SuggestedManeuverContainer_t& in, mcm_uulm_msgs::SuggestedManeuverContainer& out) {
60  toRos_StationId(in.targetStationID, out.target_station_id);
61  if (in.suggestedManeuver) {
62  toRos_SuggestedManeuver(*in.suggestedManeuver, out.suggested_maneuver);
63  out.suggested_maneuver_is_present = true;
64  }
65 }
66 
67 void toStruct_SuggestedManeuverContainer(const mcm_uulm_msgs::SuggestedManeuverContainer& in, mcm_uulm_SuggestedManeuverContainer_t& out) {
68  memset(&out, 0, sizeof(mcm_uulm_SuggestedManeuverContainer_t));
69  toStruct_StationId(in.target_station_id, out.targetStationID);
70  if (in.suggested_maneuver_is_present) {
72  toStruct_SuggestedManeuver(in.suggested_maneuver, *out.suggestedManeuver);
73  }
74 }
75 
76 }
etsi_its_mcm_uulm_conversion::toRos_SuggestedManeuver
void toRos_SuggestedManeuver(const mcm_uulm_SuggestedManeuver_t &in, mcm_uulm_msgs::SuggestedManeuver &out)
Definition: convertSuggestedManeuver.h:65
etsi_its_mcm_uulm_conversion
Definition: convertAdviceResponse.h:59
etsi_its_mcm_uulm_conversion::toStruct_SuggestedManeuverContainer
void toStruct_SuggestedManeuverContainer(const mcm_uulm_msgs::SuggestedManeuverContainer &in, mcm_uulm_SuggestedManeuverContainer_t &out)
Definition: convertSuggestedManeuverContainer.h:67
mcm_uulm_SuggestedManeuverContainer::suggestedManeuver
struct mcm_uulm_SuggestedManeuver * suggestedManeuver
mcm_uulm_SuggestedManeuverContainer.h
etsi_its_mcm_uulm_conversion::toRos_StationId
void toRos_StationId(const mcm_uulm_StationId_t &in, mcm_uulm_msgs::StationId &out)
Definition: convertStationId.h:63
mcm_uulm_SuggestedManeuverContainer::targetStationID
mcm_uulm_StationId_t targetStationID
convertStationId.h
etsi_its_mcm_uulm_conversion::toStruct_StationId
void toStruct_StationId(const mcm_uulm_msgs::StationId &in, mcm_uulm_StationId_t &out)
Definition: convertStationId.h:67
etsi_its_mcm_uulm_conversion::toStruct_SuggestedManeuver
void toStruct_SuggestedManeuver(const mcm_uulm_msgs::SuggestedManeuver &in, mcm_uulm_SuggestedManeuver_t &out)
Definition: convertSuggestedManeuver.h:73
mcm_uulm_SuggestedManeuverContainer
etsi_its_mcm_uulm_conversion::toRos_SuggestedManeuverContainer
void toRos_SuggestedManeuverContainer(const mcm_uulm_SuggestedManeuverContainer_t &in, mcm_uulm_msgs::SuggestedManeuverContainer &out)
Definition: convertSuggestedManeuverContainer.h:59
convertSuggestedManeuver.h
mcm_uulm_SuggestedManeuver


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