convertVehicleRole.h
Go to the documentation of this file.
1 
40 #pragma once
41 
43 
44 #ifdef ROS1
45 #include <etsi_its_cam_msgs/VehicleRole.h>
46 namespace cam_msgs = etsi_its_cam_msgs;
47 #else
48 #include <etsi_its_cam_msgs/msg/vehicle_role.hpp>
49 namespace cam_msgs = etsi_its_cam_msgs::msg;
50 #endif
51 
52 
53 namespace etsi_its_cam_conversion {
54 
55 void toRos_VehicleRole(const cam_VehicleRole_t& in, cam_msgs::VehicleRole& out) {
56  out.value = in;
57 }
58 
59 void toStruct_VehicleRole(const cam_msgs::VehicleRole& in, cam_VehicleRole_t& out) {
60  memset(&out, 0, sizeof(cam_VehicleRole_t));
61  out = in.value;
62 }
63 
64 }
etsi_its_cam_conversion::toStruct_VehicleRole
void toStruct_VehicleRole(const cam_msgs::VehicleRole &in, cam_VehicleRole_t &out)
Definition: convertVehicleRole.h:59
etsi_its_cam_conversion
Definition: convertAccelerationConfidence.h:54
cam_VehicleRole.h
cam_VehicleRole_t
long cam_VehicleRole_t
etsi_its_cam_conversion::toRos_VehicleRole
void toRos_VehicleRole(const cam_VehicleRole_t &in, cam_msgs::VehicleRole &out)
Definition: convertVehicleRole.h:55


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