convertPathDeltaTimeChoice.h
Go to the documentation of this file.
1 
56 #pragma once
57 
61 #ifdef ROS1
62 #include <etsi_its_denm_ts_msgs/PathDeltaTimeChoice.h>
63 namespace denm_ts_msgs = etsi_its_denm_ts_msgs;
64 #else
65 #include <etsi_its_denm_ts_msgs/msg/path_delta_time_choice.hpp>
66 namespace denm_ts_msgs = etsi_its_denm_ts_msgs::msg;
67 #endif
68 
69 
71 
72 void toRos_PathDeltaTimeChoice(const denm_ts_PathDeltaTimeChoice_t& in, denm_ts_msgs::PathDeltaTimeChoice& out) {
73  switch (in.present) {
75  toRos_DeltaTimeTenthOfSecond(in.choice.deltaTimeHighPrecision, out.delta_time_high_precision);
76  out.choice = denm_ts_msgs::PathDeltaTimeChoice::CHOICE_DELTA_TIME_HIGH_PRECISION;
77  break;
79  toRos_DeltaTimeTenSeconds(in.choice.deltaTimeBigRange, out.delta_time_big_range);
80  out.choice = denm_ts_msgs::PathDeltaTimeChoice::CHOICE_DELTA_TIME_BIG_RANGE;
81  break;
82  default: break;
83  }
84 }
85 
86 void toStruct_PathDeltaTimeChoice(const denm_ts_msgs::PathDeltaTimeChoice& in, denm_ts_PathDeltaTimeChoice_t& out) {
87  memset(&out, 0, sizeof(denm_ts_PathDeltaTimeChoice_t));
88  switch (in.choice) {
89  case denm_ts_msgs::PathDeltaTimeChoice::CHOICE_DELTA_TIME_HIGH_PRECISION:
90  toStruct_DeltaTimeTenthOfSecond(in.delta_time_high_precision, out.choice.deltaTimeHighPrecision);
91  out.present = denm_ts_PathDeltaTimeChoice_PR::denm_ts_PathDeltaTimeChoice_PR_deltaTimeHighPrecision;
92  break;
93  case denm_ts_msgs::PathDeltaTimeChoice::CHOICE_DELTA_TIME_BIG_RANGE:
94  toStruct_DeltaTimeTenSeconds(in.delta_time_big_range, out.choice.deltaTimeBigRange);
95  out.present = denm_ts_PathDeltaTimeChoice_PR::denm_ts_PathDeltaTimeChoice_PR_deltaTimeBigRange;
96  break;
97  default: break;
98  }
99 }
100 
101 }
denm_ts_PathDeltaTimeChoice::choice
union denm_ts_PathDeltaTimeChoice::denm_ts_PathDeltaTimeChoice_u choice
etsi_its_denm_ts_conversion
Definition: convertAcceleration3dWithConfidence.h:69
convertDeltaTimeTenSeconds.h
etsi_its_denm_ts_conversion::toStruct_PathDeltaTimeChoice
void toStruct_PathDeltaTimeChoice(const denm_ts_msgs::PathDeltaTimeChoice &in, denm_ts_PathDeltaTimeChoice_t &out)
Definition: convertPathDeltaTimeChoice.h:86
etsi_its_denm_ts_conversion::toStruct_DeltaTimeTenSeconds
void toStruct_DeltaTimeTenSeconds(const denm_ts_msgs::DeltaTimeTenSeconds &in, denm_ts_DeltaTimeTenSeconds_t &out)
Definition: convertDeltaTimeTenSeconds.h:71
denm_ts_PathDeltaTimeChoice_PR_deltaTimeBigRange
denm_ts_PathDeltaTimeChoice_PR_deltaTimeBigRange
etsi_its_denm_ts_conversion::toRos_DeltaTimeTenthOfSecond
void toRos_DeltaTimeTenthOfSecond(const denm_ts_DeltaTimeTenthOfSecond_t &in, denm_ts_msgs::DeltaTimeTenthOfSecond &out)
Definition: convertDeltaTimeTenthOfSecond.h:69
denm_ts_PathDeltaTimeChoice.h
etsi_its_denm_ts_conversion::toStruct_DeltaTimeTenthOfSecond
void toStruct_DeltaTimeTenthOfSecond(const denm_ts_msgs::DeltaTimeTenthOfSecond &in, denm_ts_DeltaTimeTenthOfSecond_t &out)
Definition: convertDeltaTimeTenthOfSecond.h:73
denm_ts_PathDeltaTimeChoice::present
denm_ts_PathDeltaTimeChoice_PR present
etsi_its_denm_ts_conversion::toRos_DeltaTimeTenSeconds
void toRos_DeltaTimeTenSeconds(const denm_ts_DeltaTimeTenSeconds_t &in, denm_ts_msgs::DeltaTimeTenSeconds &out)
Definition: convertDeltaTimeTenSeconds.h:67
denm_ts_PathDeltaTimeChoice_PR_deltaTimeHighPrecision
denm_ts_PathDeltaTimeChoice_PR_deltaTimeHighPrecision
denm_ts_PathDeltaTimeChoice::denm_ts_PathDeltaTimeChoice_u::deltaTimeHighPrecision
denm_ts_DeltaTimeTenthOfSecond_t deltaTimeHighPrecision
convertDeltaTimeTenthOfSecond.h
denm_ts_PathDeltaTimeChoice::denm_ts_PathDeltaTimeChoice_u::deltaTimeBigRange
denm_ts_DeltaTimeTenSeconds_t deltaTimeBigRange
denm_ts_PathDeltaTimeChoice
etsi_its_denm_ts_conversion::toRos_PathDeltaTimeChoice
void toRos_PathDeltaTimeChoice(const denm_ts_PathDeltaTimeChoice_t &in, denm_ts_msgs::PathDeltaTimeChoice &out)
Definition: convertPathDeltaTimeChoice.h:72


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