convertConnectingLane.h
Go to the documentation of this file.
1 
46 #pragma once
47 
51 #ifdef ROS1
52 #include <etsi_its_mapem_ts_msgs/ConnectingLane.h>
53 namespace mapem_ts_msgs = etsi_its_mapem_ts_msgs;
54 #else
55 #include <etsi_its_mapem_ts_msgs/msg/connecting_lane.hpp>
56 namespace mapem_ts_msgs = etsi_its_mapem_ts_msgs::msg;
57 #endif
58 
59 
61 
62 void toRos_ConnectingLane(const mapem_ts_ConnectingLane_t& in, mapem_ts_msgs::ConnectingLane& out) {
63  toRos_LaneID(in.lane, out.lane);
64  if (in.maneuver) {
65  toRos_AllowedManeuvers(*in.maneuver, out.maneuver);
66  out.maneuver_is_present = true;
67  }
68 }
69 
70 void toStruct_ConnectingLane(const mapem_ts_msgs::ConnectingLane& in, mapem_ts_ConnectingLane_t& out) {
71  memset(&out, 0, sizeof(mapem_ts_ConnectingLane_t));
72  toStruct_LaneID(in.lane, out.lane);
73  if (in.maneuver_is_present) {
75  toStruct_AllowedManeuvers(in.maneuver, *out.maneuver);
76  }
77 }
78 
79 }
mapem_ts_ConnectingLane::maneuver
mapem_ts_AllowedManeuvers_t * maneuver
convertLaneID.h
etsi_its_mapem_ts_conversion::toRos_LaneID
void toRos_LaneID(const mapem_ts_LaneID_t &in, mapem_ts_msgs::LaneID &out)
Definition: convertLaneID.h:59
convertAllowedManeuvers.h
etsi_its_mapem_ts_conversion::toRos_AllowedManeuvers
void toRos_AllowedManeuvers(const mapem_ts_AllowedManeuvers_t &in, mapem_ts_msgs::AllowedManeuvers &out)
Definition: convertAllowedManeuvers.h:72
BIT_STRING_s
mapem_ts_ConnectingLane.h
etsi_its_mapem_ts_conversion::toStruct_LaneID
void toStruct_LaneID(const mapem_ts_msgs::LaneID &in, mapem_ts_LaneID_t &out)
Definition: convertLaneID.h:63
etsi_its_mapem_ts_conversion
Definition: convertAllowedManeuvers.h:70
etsi_its_mapem_ts_conversion::toStruct_ConnectingLane
void toStruct_ConnectingLane(const mapem_ts_msgs::ConnectingLane &in, mapem_ts_ConnectingLane_t &out)
Definition: convertConnectingLane.h:70
mapem_ts_ConnectingLane
etsi_its_mapem_ts_conversion::toStruct_AllowedManeuvers
void toStruct_AllowedManeuvers(const mapem_ts_msgs::AllowedManeuvers &in, mapem_ts_AllowedManeuvers_t &out)
Definition: convertAllowedManeuvers.h:77
mapem_ts_ConnectingLane::lane
mapem_ts_LaneID_t lane
etsi_its_mapem_ts_conversion::toRos_ConnectingLane
void toRos_ConnectingLane(const mapem_ts_ConnectingLane_t &in, mapem_ts_msgs::ConnectingLane &out)
Definition: convertConnectingLane.h:62


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