convertLaneAttributes.h
Go to the documentation of this file.
1 
47 #pragma once
48 
53 #ifdef ROS1
54 #include <etsi_its_mapem_ts_msgs/LaneAttributes.h>
55 namespace mapem_ts_msgs = etsi_its_mapem_ts_msgs;
56 #else
57 #include <etsi_its_mapem_ts_msgs/msg/lane_attributes.hpp>
58 namespace mapem_ts_msgs = etsi_its_mapem_ts_msgs::msg;
59 #endif
60 
61 
63 
64 void toRos_LaneAttributes(const mapem_ts_LaneAttributes_t& in, mapem_ts_msgs::LaneAttributes& out) {
65  toRos_LaneDirection(in.directionalUse, out.directional_use);
66  toRos_LaneSharing(in.sharedWith, out.shared_with);
67  toRos_LaneTypeAttributes(in.laneType, out.lane_type);
68 }
69 
70 void toStruct_LaneAttributes(const mapem_ts_msgs::LaneAttributes& in, mapem_ts_LaneAttributes_t& out) {
71  memset(&out, 0, sizeof(mapem_ts_LaneAttributes_t));
72  toStruct_LaneDirection(in.directional_use, out.directionalUse);
73  toStruct_LaneSharing(in.shared_with, out.sharedWith);
74  toStruct_LaneTypeAttributes(in.lane_type, out.laneType);
75 }
76 
77 }
convertLaneTypeAttributes.h
mapem_ts_LaneAttributes.h
mapem_ts_LaneAttributes::directionalUse
mapem_ts_LaneDirection_t directionalUse
convertLaneDirection.h
mapem_ts_LaneAttributes::sharedWith
mapem_ts_LaneSharing_t sharedWith
mapem_ts_LaneAttributes
convertLaneSharing.h
etsi_its_mapem_ts_conversion::toRos_LaneTypeAttributes
void toRos_LaneTypeAttributes(const mapem_ts_LaneTypeAttributes_t &in, mapem_ts_msgs::LaneTypeAttributes &out)
Definition: convertLaneTypeAttributes.h:75
etsi_its_mapem_ts_conversion::toStruct_LaneSharing
void toStruct_LaneSharing(const mapem_ts_msgs::LaneSharing &in, mapem_ts_LaneSharing_t &out)
Definition: convertLaneSharing.h:75
etsi_its_mapem_ts_conversion
Definition: convertAllowedManeuvers.h:70
etsi_its_mapem_ts_conversion::toRos_LaneSharing
void toRos_LaneSharing(const mapem_ts_LaneSharing_t &in, mapem_ts_msgs::LaneSharing &out)
Definition: convertLaneSharing.h:70
mapem_ts_LaneAttributes::laneType
mapem_ts_LaneTypeAttributes_t laneType
etsi_its_mapem_ts_conversion::toRos_LaneDirection
void toRos_LaneDirection(const mapem_ts_LaneDirection_t &in, mapem_ts_msgs::LaneDirection &out)
Definition: convertLaneDirection.h:62
etsi_its_mapem_ts_conversion::toStruct_LaneDirection
void toStruct_LaneDirection(const mapem_ts_msgs::LaneDirection &in, mapem_ts_LaneDirection_t &out)
Definition: convertLaneDirection.h:67
etsi_its_mapem_ts_conversion::toStruct_LaneAttributes
void toStruct_LaneAttributes(const mapem_ts_msgs::LaneAttributes &in, mapem_ts_LaneAttributes_t &out)
Definition: convertLaneAttributes.h:70
etsi_its_mapem_ts_conversion::toStruct_LaneTypeAttributes
void toStruct_LaneTypeAttributes(const mapem_ts_msgs::LaneTypeAttributes &in, mapem_ts_LaneTypeAttributes_t &out)
Definition: convertLaneTypeAttributes.h:113
etsi_its_mapem_ts_conversion::toRos_LaneAttributes
void toRos_LaneAttributes(const mapem_ts_LaneAttributes_t &in, mapem_ts_msgs::LaneAttributes &out)
Definition: convertLaneAttributes.h:64


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