etsi_its_messages 1.0.0
Loading...
Searching...
No Matches
cam_getters.h File Reference

Getter functions for the ETSI ITS CAM (EN) More...

Go to the source code of this file.

Functions

uint32_t etsi_its_cam_msgs::access::getStationID (const ItsPduHeader &header)
 Get the StationID of ItsPduHeader.
 
double etsi_its_cam_msgs::access::getLatitude (const Latitude &latitude)
 Get the Latitude value.
 
double etsi_its_cam_msgs::access::getLongitude (const Longitude &longitude)
 Get the Longitude value.
 
double etsi_its_cam_msgs::access::getAltitude (const Altitude &altitude)
 Get the Altitude value.
 
double etsi_its_cam_msgs::access::getSpeed (const Speed &speed)
 Get the vehicle speed.
 
std::vector< bool > etsi_its_cam_msgs::access::getBitString (const std::vector< uint8_t > &buffer, const int bits_unused)
 Get a Bit String in form of bool vector.
 
template<typename T >
gm::PointStamped etsi_its_cam_msgs::access::getUTMPosition (const T &reference_position, int &zone, bool &northp)
 Get the UTM Position defined by the given ReferencePosition.
 
double etsi_its_cam_msgs::access::getLongitudinalAcceleration (const LongitudinalAcceleration &longitudinal_acceleration)
 Get the longitudinal acceleration.
 
double etsi_its_cam_msgs::access::getLateralAcceleration (const LateralAcceleration &lateral_acceleration)
 Get the lateral acceleration.
 
uint32_t etsi_its_cam_msgs::access::getStationID (const CAM &cam)
 Get the Station ID object.
 
GenerationDeltaTime etsi_its_cam_msgs::access::getGenerationDeltaTime (const CAM &cam)
 Get the GenerationDeltaTime.
 
uint16_t etsi_its_cam_msgs::access::getGenerationDeltaTimeValue (const CAM &cam)
 Get the GenerationDeltaTime-Value.
 
uint8_t etsi_its_cam_msgs::access::getStationType (const CAM &cam)
 Get the stationType object.
 
double etsi_its_cam_msgs::access::getLatitude (const CAM &cam)
 Get the Latitude value of CAM.
 
double etsi_its_cam_msgs::access::getLongitude (const CAM &cam)
 Get the Longitude value of CAM.
 
double etsi_its_cam_msgs::access::getAltitude (const CAM &cam)
 Get the Altitude value of CAM.
 
double etsi_its_cam_msgs::access::getHeading (const Heading &heading)
 Get the Heading value.
 
double etsi_its_cam_msgs::access::getHeading (const CAM &cam)
 Get the Heading value of CAM.
 
double etsi_its_cam_msgs::access::getVehicleLength (const VehicleLength &vehicle_length)
 Get the Vehicle Length.
 
double etsi_its_cam_msgs::access::getVehicleLength (const CAM &cam)
 Get the Vehicle Length.
 
double etsi_its_cam_msgs::access::getVehicleWidth (const VehicleWidth &vehicle_width)
 Get the Vehicle Width.
 
double etsi_its_cam_msgs::access::getVehicleWidth (const CAM &cam)
 Get the Vehicle Width.
 
double etsi_its_cam_msgs::access::getSpeed (const CAM &cam)
 Get the vehicle speed.
 
double etsi_its_cam_msgs::access::getLongitudinalAcceleration (const CAM &cam)
 Get the longitudinal acceleration.
 
double etsi_its_cam_msgs::access::getLateralAcceleration (const CAM &cam)
 Get the lateral acceleration.
 
gm::PointStamped etsi_its_cam_msgs::access::getUTMPosition (const CAM &cam, int &zone, bool &northp)
 Get the UTM Position defined within the BasicContainer of the CAM.
 
gm::PointStamped etsi_its_cam_msgs::access::getUTMPosition (const CAM &cam)
 Get the UTM Position defined within the BasicContainer of the CAM.
 
std::vector< bool > etsi_its_cam_msgs::access::getExteriorLights (const ExteriorLights &exterior_lights)
 Get the Exterior Lights in form of bool vector.
 
std::vector< bool > etsi_its_cam_msgs::access::getExteriorLights (const CAM &cam)
 Get Exterior Lights as bool vector.
 
std::vector< bool > etsi_its_cam_msgs::access::getAccelerationControl (const AccelerationControl &acceleration_control)
 Get Acceleration Control in form of bool vector.
 
std::vector< bool > etsi_its_cam_msgs::access::getDrivingLaneStatus (const DrivingLaneStatus &driving_lane_status)
 Get the Driving Lane Status in form of bool vector.
 
std::vector< bool > etsi_its_cam_msgs::access::getSpecialTransportType (const SpecialTransportType &special_transport_type)
 Get the Special Transport Type in form of bool vector.
 
std::vector< bool > etsi_its_cam_msgs::access::getLightBarSirenInUse (const LightBarSirenInUse &light_bar_siren_in_use)
 Get the Lightbar Siren In Use in form of bool vector.
 
std::vector< bool > etsi_its_cam_msgs::access::getEmergencyPriority (const EmergencyPriority &emergency_priority)
 Get the Vehicle Role in form of bool vector.
 

Detailed Description

Getter functions for the ETSI ITS CAM (EN)

Definition in file cam_getters.h.

Function Documentation

◆ getAccelerationControl()

std::vector< bool > etsi_its_cam_msgs::access::getAccelerationControl ( const AccelerationControl & acceleration_control)
inline

Get Acceleration Control in form of bool vector.

Parameters
acceleration_control
Returns
std::vector<bool>

Definition at line 263 of file cam_getters.h.

◆ getAltitude() [1/2]

double etsi_its_cam_msgs::access::getAltitude ( const Altitude & altitude)
inline

Get the Altitude value.

Parameters
altitudeto get the Altitude value from
Returns
Altitude value (above the reference ellipsoid surface) in meter as decimal number

Definition at line 68 of file cam_getters.h.

101{
103
110inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
111 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
112}
113
120inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
121 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
122}
123
125
126}
Common getter functions for the ETSI ITS CAM (EN and TS)
double getLongitudinalAcceleration(const CAM &cam)
Get the longitudinal acceleration.
double getLateralAcceleration(const CAM &cam)
Get the lateral acceleration.
Getter functions for the ETSI ITS Common Data Dictionary (CDD) v1.3.1.

◆ getAltitude() [2/2]

double etsi_its_cam_msgs::access::getAltitude ( const CAM & cam)
inline

Get the Altitude value of CAM.

Parameters
camCAM to get the Altitude value from
Returns
Altitude value (above the reference ellipsoid surface) in meter as decimal number

Definition at line 94 of file cam_getters.h.

127 {
129
136inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
137 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
138}
139
146inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
147 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
148}
149
151
152}

◆ getBitString()

std::vector< bool > etsi_its_cam_msgs::access::getBitString ( const std::vector< uint8_t > & buffer,
const int bits_unused )
inline

Get a Bit String in form of bool vector.

Parameters
bufferas uint8_t vector
bits_unusednumber of bits to ignore at the end of the bit string
Returns
std::vector<bool>

Definition at line 85 of file cam_getters.h.

118 {
120
127inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
128 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
129}
130
137inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
138 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
139}
140
142
143}

◆ getDrivingLaneStatus()

std::vector< bool > etsi_its_cam_msgs::access::getDrivingLaneStatus ( const DrivingLaneStatus & driving_lane_status)
inline

Get the Driving Lane Status in form of bool vector.

Parameters
driving_lane_status
Returns
std::vector<bool>

Definition at line 273 of file cam_getters.h.

306 {
308
315inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
316 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
317}
318
325inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
326 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
327}
328
330
331}

◆ getEmergencyPriority()

std::vector< bool > etsi_its_cam_msgs::access::getEmergencyPriority ( const EmergencyPriority & emergency_priority)
inline

Get the Vehicle Role in form of bool vector.

Parameters
vehicle_role
Returns
std::vector<bool>

Definition at line 303 of file cam_getters.h.

336 {
338
345inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
346 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
347}
348
355inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
356 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
357}
358
360
361}

◆ getExteriorLights() [1/2]

std::vector< bool > etsi_its_cam_msgs::access::getExteriorLights ( const CAM & cam)
inline

Get Exterior Lights as bool vector.

Parameters
camCAM to get the ExteriorLights values from
Returns
std::vector<bool>

Definition at line 243 of file cam_getters.h.

276 {
278
285inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
286 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
287}
288
295inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
296 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
297}
298
300
301}

◆ getExteriorLights() [2/2]

std::vector< bool > etsi_its_cam_msgs::access::getExteriorLights ( const ExteriorLights & exterior_lights)
inline

Get the Exterior Lights in form of bool vector.

Parameters
exterior_lights
Returns
std::vector<bool>

Definition at line 233 of file cam_getters.h.

266 {
268
275inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
276 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
277}
278
285inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
286 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
287}
288
290
291}

◆ getGenerationDeltaTime()

GenerationDeltaTime etsi_its_cam_msgs::access::getGenerationDeltaTime ( const CAM & cam)
inline

Get the GenerationDeltaTime.

Parameters
camCAM to get the GenerationDeltaTime from
Returns
GenerationDeltaTime the GenerationDeltaTime

Definition at line 50 of file cam_getters.h.

◆ getGenerationDeltaTimeValue()

uint16_t etsi_its_cam_msgs::access::getGenerationDeltaTimeValue ( const CAM & cam)
inline

Get the GenerationDeltaTime-Value.

Parameters
camCAM to get the GenerationDeltaTime-Value from
Returns
uint16_t the GenerationDeltaTime-Value

Definition at line 58 of file cam_getters.h.

◆ getHeading() [1/2]

double etsi_its_cam_msgs::access::getHeading ( const CAM & cam)
inline

Get the Heading value of CAM.

0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West

Parameters
camCAM to get the Heading value from
Returns
Heading value in degree as decimal number

Definition at line 116 of file cam_getters.h.

149 {
151
158inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
159 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
160}
161
168inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
169 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
170}
171
173
174}

◆ getHeading() [2/2]

double etsi_its_cam_msgs::access::getHeading ( const Heading & heading)
inline

Get the Heading value.

0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West

Parameters
headingto get the Heading value from
Returns
Heading value in degree as decimal number

Definition at line 106 of file cam_getters.h.

139{
141
148inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
149 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
150}
151
158inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
159 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
160}
161
163
164}

◆ getLateralAcceleration() [1/2]

double etsi_its_cam_msgs::access::getLateralAcceleration ( const CAM & cam)
inline

Get the lateral acceleration.

Parameters
camCAM to get the lateral acceleration from
Returns
lateral acceleration in m/s^2 as decimal number (left is positive)

Definition at line 187 of file cam_getters.h.

220 {
222
229inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
230 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
231}
232
239inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
240 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
241}
242
244
245}

◆ getLateralAcceleration() [2/2]

double etsi_its_cam_msgs::access::getLateralAcceleration ( const LateralAcceleration & lateral_acceleration)
inline

Get the lateral acceleration.

Parameters
lateralAccelerationto get the lateral acceleration from
Returns
lateral acceleration in m/s^2 as decimal number (left is positive)

Definition at line 161 of file cam_getters.h.

194 {
196
203inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
204 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
205}
206
213inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
214 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
215}
216
218
219}

◆ getLatitude() [1/2]

double etsi_its_cam_msgs::access::getLatitude ( const CAM & cam)
inline

Get the Latitude value of CAM.

Parameters
camCAM to get the Latitude value from
Returns
Latitude value in degree as decimal number

Definition at line 74 of file cam_getters.h.

107 {
109
116inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
117 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
118}
119
126inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
127 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
128}
129
131
132}

◆ getLatitude() [2/2]

double etsi_its_cam_msgs::access::getLatitude ( const Latitude & latitude)
inline

Get the Latitude value.

Parameters
latitudeto get the Latitude value from
Returns
Latitude value in degree as decimal number

Definition at line 52 of file cam_getters.h.

◆ getLightBarSirenInUse()

std::vector< bool > etsi_its_cam_msgs::access::getLightBarSirenInUse ( const LightBarSirenInUse & light_bar_siren_in_use)
inline

Get the Lightbar Siren In Use in form of bool vector.

Parameters
light_bar_siren_in_use
Returns
std::vector<bool>

Definition at line 293 of file cam_getters.h.

326 {
328
335inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
336 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
337}
338
345inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
346 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
347}
348
350
351}

◆ getLongitude() [1/2]

double etsi_its_cam_msgs::access::getLongitude ( const CAM & cam)
inline

Get the Longitude value of CAM.

Parameters
camCAM to get the Longitude value from
Returns
Longitude value in degree as decimal number

Definition at line 84 of file cam_getters.h.

117 {
119
126inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
127 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
128}
129
136inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
137 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
138}
139
141
142}

◆ getLongitude() [2/2]

double etsi_its_cam_msgs::access::getLongitude ( const Longitude & longitude)
inline

Get the Longitude value.

Parameters
longitudeto get the Longitude value from
Returns
Longitude value in degree as decimal number

Definition at line 60 of file cam_getters.h.

93{
95
102inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
103 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
104}
105
112inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
113 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
114}
115
117
118}

◆ getLongitudinalAcceleration() [1/2]

double etsi_its_cam_msgs::access::getLongitudinalAcceleration ( const CAM & cam)
inline

Get the longitudinal acceleration.

Parameters
camCAM to get the longitudinal acceleration from
Returns
longitudinal acceleration in m/s^2 as decimal number (left is positive)

Definition at line 176 of file cam_getters.h.

209 {
211
218inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
219 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
220}
221
228inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
229 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
230}
231
233
234}

◆ getLongitudinalAcceleration() [2/2]

double etsi_its_cam_msgs::access::getLongitudinalAcceleration ( const LongitudinalAcceleration & longitudinal_acceleration)
inline

Get the longitudinal acceleration.

Parameters
longitudinalAccelerationto get the longitudinal acceleration from
Returns
longitudinal acceleration in m/s^2 as decimal number (left is positive)

Definition at line 151 of file cam_getters.h.

184 {
186
193inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
194 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
195}
196
203inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
204 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
205}
206
208
209}

◆ getSpecialTransportType()

std::vector< bool > etsi_its_cam_msgs::access::getSpecialTransportType ( const SpecialTransportType & special_transport_type)
inline

Get the Special Transport Type in form of bool vector.

Parameters
special_transport_type
Returns
std::vector<bool>

Definition at line 283 of file cam_getters.h.

316 {
318
325inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
326 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
327}
328
335inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
336 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
337}
338
340
341}

◆ getSpeed() [1/2]

double etsi_its_cam_msgs::access::getSpeed ( const CAM & cam)
inline

Get the vehicle speed.

Parameters
camCAM to get the speed value from
Returns
speed value in m/s as decimal number

Definition at line 166 of file cam_getters.h.

199 {
201
208inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
209 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
210}
211
218inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
219 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
220}
221
223
224}

◆ getSpeed() [2/2]

double etsi_its_cam_msgs::access::getSpeed ( const Speed & speed)
inline

Get the vehicle speed.

Parameters
speedto get the speed value from
Returns
speed value in m/s as decimal number

Definition at line 76 of file cam_getters.h.

109{
111
118inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
119 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
120}
121
128inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
129 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
130}
131
133
134}

◆ getStationID() [1/2]

uint32_t etsi_its_cam_msgs::access::getStationID ( const CAM & cam)
inline

Get the Station ID object.

Parameters
camCAM to get the StationID value from
Returns
stationID value

Definition at line 42 of file cam_getters.h.

◆ getStationID() [2/2]

uint32_t etsi_its_cam_msgs::access::getStationID ( const ItsPduHeader & header)
inline

Get the StationID of ItsPduHeader.

Parameters
headerItsPduHeader to get the StationID value from
Returns
stationID value

Definition at line 44 of file cam_getters.h.

◆ getStationType()

uint8_t etsi_its_cam_msgs::access::getStationType ( const CAM & cam)
inline

Get the stationType object.

Parameters
camCAM to get the stationType value from
Returns
stationType value

Definition at line 66 of file cam_getters.h.

99{
101
108inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
109 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
110}
111
118inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
119 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
120}
121
123
124}

◆ getUTMPosition() [1/3]

gm::PointStamped etsi_its_cam_msgs::access::getUTMPosition ( const CAM & cam)
inline

Get the UTM Position defined within the BasicContainer of the CAM.

The position is transformed into UTM by using GeographicLib::UTMUPS The altitude value is directly used as z-Coordinate

Parameters
[in]camCAM to get the UTM Position from
Returns
gm::PointStamped geometry_msgs::PointStamped of the given position

Definition at line 221 of file cam_getters.h.

254 {
256
263inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
264 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
265}
266
273inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
274 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
275}
276
278
279}

◆ getUTMPosition() [2/3]

gm::PointStamped etsi_its_cam_msgs::access::getUTMPosition ( const CAM & cam,
int & zone,
bool & northp )
inline

Get the UTM Position defined within the BasicContainer of the CAM.

The position is transformed into UTM by using GeographicLib::UTMUPS The altitude value is directly used as z-Coordinate

Parameters
[in]camCAM to get the UTM Position from
[out]zonethe UTM zone (zero means UPS)
[out]northphemisphere (true means north, false means south)
Returns
gm::PointStamped geometry_msgs::PointStamped of the given position

Definition at line 208 of file cam_getters.h.

241 {
243
250inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
251 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
252}
253
260inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
261 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
262}
263
265
266}

◆ getUTMPosition() [3/3]

template<typename T >
gm::PointStamped etsi_its_cam_msgs::access::getUTMPosition ( const T & reference_position,
int & zone,
bool & northp )
inline

Get the UTM Position defined by the given ReferencePosition.

The position is transformed into UTM by using GeographicLib::UTMUPS The altitude value is directly used as z-Coordinate

Parameters
[in]reference_positionReferencePosition or ReferencePositionWithConfidence to get the UTM Position from
[out]zonethe UTM zone (zero means UPS)
[out]northphemisphere (true means north, false means south)
Returns
gm::PointStamped geometry_msgs::PointStamped of the given position

Definition at line 121 of file cam_getters.h.

154 {
156
163inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
164 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
165}
166
173inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
174 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
175}
176
178
179}

◆ getVehicleLength() [1/2]

double etsi_its_cam_msgs::access::getVehicleLength ( const CAM & cam)
inline

Get the Vehicle Length.

Parameters
camCAM to get the vehicle length value from
Returns
vehicle length value in meter as decimal number

Definition at line 136 of file cam_getters.h.

169 {
171
178inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
179 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
180}
181
188inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
189 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
190}
191
193
194}

◆ getVehicleLength() [2/2]

double etsi_its_cam_msgs::access::getVehicleLength ( const VehicleLength & vehicle_length)
inline

Get the Vehicle Length.

Parameters
vehicleLengthto get the vehicle length value from
Returns
vehicle length value in meter as decimal number

Definition at line 126 of file cam_getters.h.

159 {
161
168inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
169 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
170}
171
178inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
179 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
180}
181
183
184}

◆ getVehicleWidth() [1/2]

double etsi_its_cam_msgs::access::getVehicleWidth ( const CAM & cam)
inline

Get the Vehicle Width.

Parameters
camCAM to get the vehicle width value from
Returns
vehicle width value in meter as decimal number

Definition at line 155 of file cam_getters.h.

188 {
190
197inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
198 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
199}
200
207inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
208 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
209}
210
212
213}

◆ getVehicleWidth() [2/2]

double etsi_its_cam_msgs::access::getVehicleWidth ( const VehicleWidth & vehicle_width)
inline

Get the Vehicle Width.

Parameters
vehicleWidthto get the vehicle width value from
Returns
vehicle width value in meter as decimal number

Definition at line 147 of file cam_getters.h.

180{
182
189inline double getLongitudinalAcceleration(const LongitudinalAcceleration& longitudinal_acceleration) {
190 return ((double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
191}
192
199inline double getLateralAcceleration(const LateralAcceleration& lateral_acceleration) {
200 return ((double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
201}
202
204
205}