include
etsi_its_denm_conversion
convertLightBarSirenInUse.h
Go to the documentation of this file.
1
43
#pragma once
44
45
#include <
etsi_its_denm_coding/denm_LightBarSirenInUse.h
>
46
#include <
etsi_its_denm_coding/BIT_STRING.h
>
47
#include <
etsi_its_primitives_conversion/convertBIT_STRING.h
>
48
#ifdef ROS1
49
#include <etsi_its_denm_msgs/LightBarSirenInUse.h>
50
namespace
denm_msgs = etsi_its_denm_msgs;
51
#else
52
#include <etsi_its_denm_msgs/msg/light_bar_siren_in_use.hpp>
53
namespace
denm_msgs = etsi_its_denm_msgs::msg;
54
#endif
55
56
57
namespace
etsi_its_denm_conversion
{
58
59
void
toRos_LightBarSirenInUse
(
const
denm_LightBarSirenInUse_t
& in, denm_msgs::LightBarSirenInUse& out) {
60
etsi_its_primitives_conversion::toRos_BIT_STRING
(in, out.value);
61
out.bits_unused = in.
bits_unused
;
62
}
63
64
void
toStruct_LightBarSirenInUse
(
const
denm_msgs::LightBarSirenInUse& in,
denm_LightBarSirenInUse_t
& out) {
65
memset(&out, 0,
sizeof
(
denm_LightBarSirenInUse_t
));
66
etsi_its_primitives_conversion::toStruct_BIT_STRING
(in.value, out);
67
out.
bits_unused
= in.bits_unused;
68
}
69
70
}
etsi_its_denm_conversion::toStruct_LightBarSirenInUse
void toStruct_LightBarSirenInUse(const denm_msgs::LightBarSirenInUse &in, denm_LightBarSirenInUse_t &out)
Definition:
convertLightBarSirenInUse.h:64
denm_LightBarSirenInUse.h
convertBIT_STRING.h
BIT_STRING_s
BIT_STRING.h
etsi_its_denm_conversion::toRos_LightBarSirenInUse
void toRos_LightBarSirenInUse(const denm_LightBarSirenInUse_t &in, denm_msgs::LightBarSirenInUse &out)
Definition:
convertLightBarSirenInUse.h:59
etsi_its_denm_conversion
Definition:
convertAccidentSubCauseCode.h:54
BIT_STRING_s::bits_unused
int bits_unused
etsi_its_primitives_conversion::toStruct_BIT_STRING
void toStruct_BIT_STRING(const std::vector< uint8_t > &_BIT_STRING_in, T &BIT_STRING_out)
etsi_its_primitives_conversion::toRos_BIT_STRING
void toRos_BIT_STRING(const T &_BIT_STRING_in, std::vector< uint8_t > &BIT_STRING_out)
etsi_its_denm_conversion
Author(s): Jean-Pierre Busch
, Guido Küppers
, Lennart Reiher
autogenerated on Sun May 18 2025 02:29:03