17 #include <adore_if_ros_msg/SimResetVehicleDimensions.h>
29 void operator()(
const adore_if_ros_msg::SimResetVehicleDimensions& msg,
36 adore_if_ros_msg::SimResetVehicleDimensions msg;
41 adore_if_ros_msg::SimResetVehicleDimensions& target)
44 if (source.
get_a(val))
47 target.a_valid =
true;
51 target.a_valid =
false;
53 if (source.
get_b(val))
56 target.b_valid =
true;
60 target.b_valid =
false;
62 if (source.
get_c(val))
65 target.c_valid =
true;
69 target.c_valid =
false;
71 if (source.
get_d(val))
74 target.d_valid =
true;
78 target.d_valid =
false;
80 if (source.
get_m(val))
83 target.m_valid =
true;
87 target.m_valid =
false;
92 target.width_valid =
true;
96 target.width_valid =
false;
99 void toOBJ(
const adore_if_ros_msg::SimResetVehicleDimensions& source,
104 target.
set_a(source.a);
112 target.
set_b(source.b);
120 target.
set_c(source.c);
128 target.
set_d(source.d);
136 target.
set_m(source.m);
142 if (source.width_valid)
Definition: areaofeffectconverter.h:20
Definition: simresetvehicledimensionsconverter.h:24
void toOBJ(const adore_if_ros_msg::SimResetVehicleDimensions &source, adore::sim::ResetVehicleDimensions &target)
Definition: simresetvehicledimensionsconverter.h:99
adore_if_ros_msg::SimResetVehicleDimensions operator()(const adore::sim::ResetVehicleDimensions &rvd)
Definition: simresetvehicledimensionsconverter.h:34
void toMSG(const adore::sim::ResetVehicleDimensions &source, adore_if_ros_msg::SimResetVehicleDimensions &target)
Definition: simresetvehicledimensionsconverter.h:40
void operator()(const adore_if_ros_msg::SimResetVehicleDimensions &msg, adore::sim::ResetVehicleDimensions &rvd)
Definition: simresetvehicledimensionsconverter.h:29
void operator()(adore_if_ros_msg::SimResetVehicleDimensionsConstPtr msg, adore::sim::ResetVehicleDimensions &rvd)
Definition: simresetvehicledimensionsconverter.h:25
provides encapsulation of values needed to reset the vehicle dimensions in a simulation
Definition: resetvehicledimensions.h:26
void set_c(double val)
Definition: resetvehicledimensions.h:109
void invalidate_m()
Definition: resetvehicledimensions.h:145
bool get_d(double &val) const
Definition: resetvehicledimensions.h:75
void set_width(double val)
Definition: resetvehicledimensions.h:124
void set_b(double val)
Definition: resetvehicledimensions.h:104
void invalidate_a()
Definition: resetvehicledimensions.h:129
void invalidate_c()
Definition: resetvehicledimensions.h:137
void invalidate_d()
Definition: resetvehicledimensions.h:141
bool get_a(double &val) const
Definition: resetvehicledimensions.h:51
void invalidate_width()
Definition: resetvehicledimensions.h:149
void invalidate_b()
Definition: resetvehicledimensions.h:133
bool get_m(double &val) const
Definition: resetvehicledimensions.h:83
void set_d(double val)
Definition: resetvehicledimensions.h:114
bool get_c(double &val) const
Definition: resetvehicledimensions.h:67
void set_a(double val)
Definition: resetvehicledimensions.h:99
bool get_b(double &val) const
Definition: resetvehicledimensions.h:59
bool get_width(double &val) const
Definition: resetvehicledimensions.h:91
void set_m(double val)
Definition: resetvehicledimensions.h:119