convertAdviceResponse.h
Go to the documentation of this file.
1 
44 #pragma once
45 
50 #ifdef ROS1
51 #include <etsi_its_mcm_uulm_msgs/AdviceResponse.h>
52 namespace mcm_uulm_msgs = etsi_its_mcm_uulm_msgs;
53 #else
54 #include <etsi_its_mcm_uulm_msgs/msg/advice_response.hpp>
55 namespace mcm_uulm_msgs = etsi_its_mcm_uulm_msgs::msg;
56 #endif
57 
58 
60 
61 void toRos_AdviceResponse(const mcm_uulm_AdviceResponse_t& in, mcm_uulm_msgs::AdviceResponse& out) {
62  toRos_ManeuverID(in.maneuverID, out.maneuver_id);
63  toRos_AdviceUpdateID(in.adviceUpdateID, out.advice_update_id);
64  toRos_ManeuverResponse(in.adviceFollowed, out.advice_followed);
65 }
66 
67 void toStruct_AdviceResponse(const mcm_uulm_msgs::AdviceResponse& in, mcm_uulm_AdviceResponse_t& out) {
68  memset(&out, 0, sizeof(mcm_uulm_AdviceResponse_t));
69  toStruct_ManeuverID(in.maneuver_id, out.maneuverID);
70  toStruct_AdviceUpdateID(in.advice_update_id, out.adviceUpdateID);
71  toStruct_ManeuverResponse(in.advice_followed, out.adviceFollowed);
72 }
73 
74 }
mcm_uulm_AdviceResponse.h
convertAdviceUpdateID.h
etsi_its_mcm_uulm_conversion
Definition: convertAdviceResponse.h:59
etsi_its_mcm_uulm_conversion::toRos_ManeuverResponse
void toRos_ManeuverResponse(const mcm_uulm_ManeuverResponse_t &in, mcm_uulm_msgs::ManeuverResponse &out)
Definition: convertManeuverResponse.h:55
etsi_its_mcm_uulm_conversion::toRos_AdviceResponse
void toRos_AdviceResponse(const mcm_uulm_AdviceResponse_t &in, mcm_uulm_msgs::AdviceResponse &out)
Definition: convertAdviceResponse.h:61
mcm_uulm_AdviceResponse::maneuverID
mcm_uulm_ManeuverID_t maneuverID
etsi_its_mcm_uulm_conversion::toStruct_AdviceResponse
void toStruct_AdviceResponse(const mcm_uulm_msgs::AdviceResponse &in, mcm_uulm_AdviceResponse_t &out)
Definition: convertAdviceResponse.h:67
convertManeuverID.h
mcm_uulm_AdviceResponse::adviceFollowed
mcm_uulm_ManeuverResponse_t adviceFollowed
etsi_its_mcm_uulm_conversion::toStruct_ManeuverResponse
void toStruct_ManeuverResponse(const mcm_uulm_msgs::ManeuverResponse &in, mcm_uulm_ManeuverResponse_t &out)
Definition: convertManeuverResponse.h:59
etsi_its_mcm_uulm_conversion::toRos_ManeuverID
void toRos_ManeuverID(const mcm_uulm_ManeuverID_t &in, mcm_uulm_msgs::ManeuverID &out)
Definition: convertManeuverID.h:56
etsi_its_mcm_uulm_conversion::toStruct_ManeuverID
void toStruct_ManeuverID(const mcm_uulm_msgs::ManeuverID &in, mcm_uulm_ManeuverID_t &out)
Definition: convertManeuverID.h:60
mcm_uulm_AdviceResponse
mcm_uulm_AdviceResponse::adviceUpdateID
mcm_uulm_AdviceUpdateID_t adviceUpdateID
etsi_its_mcm_uulm_conversion::toRos_AdviceUpdateID
void toRos_AdviceUpdateID(const mcm_uulm_AdviceUpdateID_t &in, mcm_uulm_msgs::AdviceUpdateID &out)
Definition: convertAdviceUpdateID.h:56
etsi_its_mcm_uulm_conversion::toStruct_AdviceUpdateID
void toStruct_AdviceUpdateID(const mcm_uulm_msgs::AdviceUpdateID &in, mcm_uulm_AdviceUpdateID_t &out)
Definition: convertAdviceUpdateID.h:60
convertManeuverResponse.h


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