convertPathPoint.h
Go to the documentation of this file.
1 
43 #pragma once
44 
48 #ifdef ROS1
49 #include <etsi_its_denm_msgs/PathPoint.h>
50 namespace denm_msgs = etsi_its_denm_msgs;
51 #else
52 #include <etsi_its_denm_msgs/msg/path_point.hpp>
53 namespace denm_msgs = etsi_its_denm_msgs::msg;
54 #endif
55 
56 
57 namespace etsi_its_denm_conversion {
58 
59 void toRos_PathPoint(const denm_PathPoint_t& in, denm_msgs::PathPoint& out) {
60  toRos_DeltaReferencePosition(in.pathPosition, out.path_position);
61  if (in.pathDeltaTime) {
62  toRos_PathDeltaTime(*in.pathDeltaTime, out.path_delta_time);
63  out.path_delta_time_is_present = true;
64  }
65 }
66 
67 void toStruct_PathPoint(const denm_msgs::PathPoint& in, denm_PathPoint_t& out) {
68  memset(&out, 0, sizeof(denm_PathPoint_t));
69  toStruct_DeltaReferencePosition(in.path_position, out.pathPosition);
70  if (in.path_delta_time_is_present) {
71  out.pathDeltaTime = (denm_PathDeltaTime_t*) calloc(1, sizeof(denm_PathDeltaTime_t));
72  toStruct_PathDeltaTime(in.path_delta_time, *out.pathDeltaTime);
73  }
74 }
75 
76 }
denm_PathPoint::pathDeltaTime
denm_PathDeltaTime_t * pathDeltaTime
denm_PathPoint
denm_PathPoint::pathPosition
denm_DeltaReferencePosition_t pathPosition
convertPathDeltaTime.h
etsi_its_denm_conversion::toRos_DeltaReferencePosition
void toRos_DeltaReferencePosition(const denm_DeltaReferencePosition_t &in, denm_msgs::DeltaReferencePosition &out)
Definition: convertDeltaReferencePosition.h:61
etsi_its_denm_conversion::toRos_PathDeltaTime
void toRos_PathDeltaTime(const denm_PathDeltaTime_t &in, denm_msgs::PathDeltaTime &out)
Definition: convertPathDeltaTime.h:56
etsi_its_denm_conversion::toRos_PathPoint
void toRos_PathPoint(const denm_PathPoint_t &in, denm_msgs::PathPoint &out)
Definition: convertPathPoint.h:59
etsi_its_denm_conversion::toStruct_PathDeltaTime
void toStruct_PathDeltaTime(const denm_msgs::PathDeltaTime &in, denm_PathDeltaTime_t &out)
Definition: convertPathDeltaTime.h:60
denm_PathPoint.h
etsi_its_denm_conversion::toStruct_PathPoint
void toStruct_PathPoint(const denm_msgs::PathPoint &in, denm_PathPoint_t &out)
Definition: convertPathPoint.h:67
convertDeltaReferencePosition.h
denm_PathDeltaTime_t
long denm_PathDeltaTime_t
etsi_its_denm_conversion::toStruct_DeltaReferencePosition
void toStruct_DeltaReferencePosition(const denm_msgs::DeltaReferencePosition &in, denm_DeltaReferencePosition_t &out)
Definition: convertDeltaReferencePosition.h:67
etsi_its_denm_conversion
Definition: convertAccidentSubCauseCode.h:54


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