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

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

Go to the source code of this file.

Functions

uint32_t etsi_its_cam_ts_msgs::access::getStationID (const ItsPduHeader &header)
 Get the StationID of ItsPduHeader.
 
double etsi_its_cam_ts_msgs::access::getLatitude (const Latitude &latitude)
 Get the Latitude value.
 
double etsi_its_cam_ts_msgs::access::getLongitude (const Longitude &longitude)
 Get the Longitude value.
 
double etsi_its_cam_ts_msgs::access::getAltitude (const Altitude &altitude)
 Get the Altitude value.
 
double etsi_its_cam_ts_msgs::access::getSpeed (const Speed &speed)
 Get the vehicle speed.
 
std::vector< bool > etsi_its_cam_ts_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_ts_msgs::access::getUTMPosition (const T &reference_position, int &zone, bool &northp)
 Get the UTM Position defined by the given ReferencePosition.
 
double etsi_its_cam_ts_msgs::access::getLongitudinalAcceleration (const AccelerationComponent &longitudinal_acceleration)
 Get the longitudinal acceleration.
 
double etsi_its_cam_ts_msgs::access::getLateralAcceleration (const AccelerationComponent &lateral_acceleration)
 Get the lateral acceleration.
 
uint32_t etsi_its_cam_ts_msgs::access::getStationID (const CAM &cam)
 Get the Station ID object.
 
GenerationDeltaTime etsi_its_cam_ts_msgs::access::getGenerationDeltaTime (const CAM &cam)
 Get the GenerationDeltaTime.
 
uint16_t etsi_its_cam_ts_msgs::access::getGenerationDeltaTimeValue (const CAM &cam)
 Get the GenerationDeltaTime-Value.
 
uint8_t etsi_its_cam_ts_msgs::access::getStationType (const CAM &cam)
 Get the stationType object.
 
double etsi_its_cam_ts_msgs::access::getLatitude (const CAM &cam)
 Get the Latitude value of CAM.
 
double etsi_its_cam_ts_msgs::access::getLongitude (const CAM &cam)
 Get the Longitude value of CAM.
 
double etsi_its_cam_ts_msgs::access::getAltitude (const CAM &cam)
 Get the Altitude value of CAM.
 
double etsi_its_cam_ts_msgs::access::getHeading (const Heading &heading)
 Get the Heading value.
 
double etsi_its_cam_ts_msgs::access::getHeading (const CAM &cam)
 Get the Heading value of CAM.
 
double etsi_its_cam_ts_msgs::access::getVehicleLength (const VehicleLength &vehicle_length)
 Get the Vehicle Length.
 
double etsi_its_cam_ts_msgs::access::getVehicleLength (const CAM &cam)
 Get the Vehicle Length.
 
double etsi_its_cam_ts_msgs::access::getVehicleWidth (const VehicleWidth &vehicle_width)
 Get the Vehicle Width.
 
double etsi_its_cam_ts_msgs::access::getVehicleWidth (const CAM &cam)
 Get the Vehicle Width.
 
double etsi_its_cam_ts_msgs::access::getSpeed (const CAM &cam)
 Get the vehicle speed.
 
double etsi_its_cam_ts_msgs::access::getLongitudinalAcceleration (const CAM &cam)
 Get the longitudinal acceleration.
 
double etsi_its_cam_ts_msgs::access::getLateralAcceleration (const CAM &cam)
 Get the lateral acceleration.
 
gm::PointStamped etsi_its_cam_ts_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_ts_msgs::access::getUTMPosition (const CAM &cam)
 Get the UTM Position defined within the BasicContainer of the CAM.
 
std::vector< bool > etsi_its_cam_ts_msgs::access::getExteriorLights (const ExteriorLights &exterior_lights)
 Get the Exterior Lights in form of bool vector.
 
std::vector< bool > etsi_its_cam_ts_msgs::access::getExteriorLights (const CAM &cam)
 Get Exterior Lights as bool vector.
 
std::vector< bool > etsi_its_cam_ts_msgs::access::getAccelerationControl (const AccelerationControl &acceleration_control)
 Get Acceleration Control in form of bool vector.
 
std::vector< bool > etsi_its_cam_ts_msgs::access::getDrivingLaneStatus (const DrivingLaneStatus &driving_lane_status)
 Get the Driving Lane Status in form of bool vector.
 
std::vector< bool > etsi_its_cam_ts_msgs::access::getSpecialTransportType (const SpecialTransportType &special_transport_type)
 Get the Special Transport Type in form of bool vector.
 
std::vector< bool > etsi_its_cam_ts_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_ts_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 (TS)

Definition in file cam_ts_getters.h.

Function Documentation

◆ getAccelerationControl()

std::vector< bool > etsi_its_cam_ts_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_ts_getters.h.

◆ getAltitude() [1/2]

double etsi_its_cam_ts_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_ts_getters.h.

101{
103
105} // namespace etsi_its_cam_ts_msgs::access
Common getter functions for the ETSI ITS CAM (EN and TS)
Getter functions for the ETSI ITS Common Data Dictionary (CDD) v2.1.1.

◆ getAltitude() [2/2]

double etsi_its_cam_ts_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_ts_getters.h.

127 {
129
131} // namespace etsi_its_cam_ts_msgs::access

◆ getBitString()

std::vector< bool > etsi_its_cam_ts_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_ts_getters.h.

118 {
120
122} // namespace etsi_its_cam_ts_msgs::access

◆ getDrivingLaneStatus()

std::vector< bool > etsi_its_cam_ts_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_ts_getters.h.

306 {
308
310} // namespace etsi_its_cam_ts_msgs::access

◆ getEmergencyPriority()

std::vector< bool > etsi_its_cam_ts_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_ts_getters.h.

336 {
338
340} // namespace etsi_its_cam_ts_msgs::access

◆ getExteriorLights() [1/2]

std::vector< bool > etsi_its_cam_ts_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_ts_getters.h.

276 {
278
280} // namespace etsi_its_cam_ts_msgs::access

◆ getExteriorLights() [2/2]

std::vector< bool > etsi_its_cam_ts_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_ts_getters.h.

266 {
268
270} // namespace etsi_its_cam_ts_msgs::access

◆ getGenerationDeltaTime()

GenerationDeltaTime etsi_its_cam_ts_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_ts_getters.h.

83{
85
87} // namespace etsi_its_cam_ts_msgs::access

◆ getGenerationDeltaTimeValue()

uint16_t etsi_its_cam_ts_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_ts_getters.h.

91{
93
95} // namespace etsi_its_cam_ts_msgs::access

◆ getHeading() [1/2]

double etsi_its_cam_ts_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_ts_getters.h.

149 {
151
153} // namespace etsi_its_cam_ts_msgs::access

◆ getHeading() [2/2]

double etsi_its_cam_ts_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_ts_getters.h.

139{
141
143} // namespace etsi_its_cam_ts_msgs::access

◆ getLateralAcceleration() [1/2]

double etsi_its_cam_ts_msgs::access::getLateralAcceleration ( const AccelerationComponent & 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 159 of file cam_ts_getters.h.

192 {
194
196} // namespace etsi_its_cam_ts_msgs::access

◆ getLateralAcceleration() [2/2]

double etsi_its_cam_ts_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_ts_getters.h.

220 {
222
224} // namespace etsi_its_cam_ts_msgs::access

◆ getLatitude() [1/2]

double etsi_its_cam_ts_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_ts_getters.h.

107 {
109
111} // namespace etsi_its_cam_ts_msgs::access

◆ getLatitude() [2/2]

double etsi_its_cam_ts_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_ts_getters.h.

85{
87
89} // namespace etsi_its_cam_ts_msgs::access

◆ getLightBarSirenInUse()

std::vector< bool > etsi_its_cam_ts_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_ts_getters.h.

326 {
328
330} // namespace etsi_its_cam_ts_msgs::access

◆ getLongitude() [1/2]

double etsi_its_cam_ts_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_ts_getters.h.

117 {
119
121} // namespace etsi_its_cam_ts_msgs::access

◆ getLongitude() [2/2]

double etsi_its_cam_ts_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_ts_getters.h.

93{
95
97} // namespace etsi_its_cam_ts_msgs::access

◆ getLongitudinalAcceleration() [1/2]

double etsi_its_cam_ts_msgs::access::getLongitudinalAcceleration ( const AccelerationComponent & 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 149 of file cam_ts_getters.h.

182 {
184
186} // namespace etsi_its_cam_ts_msgs::access

◆ getLongitudinalAcceleration() [2/2]

double etsi_its_cam_ts_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_ts_getters.h.

209 {
211
213} // namespace etsi_its_cam_ts_msgs::access

◆ getSpecialTransportType()

std::vector< bool > etsi_its_cam_ts_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_ts_getters.h.

316 {
318
320} // namespace etsi_its_cam_ts_msgs::access

◆ getSpeed() [1/2]

double etsi_its_cam_ts_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_ts_getters.h.

199 {
201
203} // namespace etsi_its_cam_ts_msgs::access

◆ getSpeed() [2/2]

double etsi_its_cam_ts_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_ts_getters.h.

109{
111
113} // namespace etsi_its_cam_ts_msgs::access

◆ getStationID() [1/2]

uint32_t etsi_its_cam_ts_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_ts_getters.h.

75{
77
79} // namespace etsi_its_cam_ts_msgs::access

◆ getStationID() [2/2]

uint32_t etsi_its_cam_ts_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_ts_getters.h.

77{
79
81} // namespace etsi_its_cam_ts_msgs::access

◆ getStationType()

uint8_t etsi_its_cam_ts_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_ts_getters.h.

99{
101
103} // namespace etsi_its_cam_ts_msgs::access

◆ getUTMPosition() [1/3]

gm::PointStamped etsi_its_cam_ts_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_ts_getters.h.

254 {
256
258} // namespace etsi_its_cam_ts_msgs::access

◆ getUTMPosition() [2/3]

gm::PointStamped etsi_its_cam_ts_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_ts_getters.h.

241 {
243
245} // namespace etsi_its_cam_ts_msgs::access

◆ getUTMPosition() [3/3]

template<typename T >
gm::PointStamped etsi_its_cam_ts_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_ts_getters.h.

154 {
156
158} // namespace etsi_its_cam_ts_msgs::access

◆ getVehicleLength() [1/2]

double etsi_its_cam_ts_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_ts_getters.h.

169 {
171
173} // namespace etsi_its_cam_ts_msgs::access

◆ getVehicleLength() [2/2]

double etsi_its_cam_ts_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_ts_getters.h.

159 {
161
163} // namespace etsi_its_cam_ts_msgs::access

◆ getVehicleWidth() [1/2]

double etsi_its_cam_ts_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_ts_getters.h.

188 {
190
192} // namespace etsi_its_cam_ts_msgs::access

◆ getVehicleWidth() [2/2]

double etsi_its_cam_ts_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_ts_getters.h.

180{
182
184} // namespace etsi_its_cam_ts_msgs::access