34namespace etsi_its_mapem_ts_msgs {
38#include <etsi_its_msgs_utils/impl/asn1_primitives/asn1_primitives_getters.h>
49 return map.time_stamp;
69 inline MinuteOfTheYear getMinuteOfTheYear(
const MAPEM& mapem) {
79 inline uint32_t getMinuteOfTheYearValue(
const MAPEM& mapem) {
80 return getMinuteOfTheYearValue(mapem.map);
89 inline uint16_t getIntersectionID(
const IntersectionID& intsct_id) {
90 return intsct_id.value;
109 inline double getLatitude(
const Latitude& latitude) {
110 return ((
double)latitude.value)*1e-7;
119 inline double getLongitude(
const Longitude& longitude) {
120 return ((
double)longitude.value)*1e-7;
129 inline double getElevation(
const Elevation& elevation) {
130 return ((
double)elevation.value)*1e-1;
139 inline double getLatitude(
const Position3D& ref_point) {
149 inline double getLongitude(
const Position3D& ref_point) {
159 inline double getElevation(
const Position3D& ref_point) {
160 throwIfNotPresent(ref_point.elevation_is_present,
"Position3D.elevation_is_present");
170 inline std::vector<bool> getLaneDirection(
const LaneDirection& lane_direction) {
171 return getBitString(lane_direction.value, lane_direction.bits_unused);
180 inline std::vector<bool> getLaneDirection(
const LaneAttributes& lane_attributes) {
181 return getLaneDirection(lane_attributes.directional_use);
190 inline std::vector<bool> getLaneDirection(
const GenericLane& generic_lane) {
191 return getLaneDirection(generic_lane.lane_attributes);
201 template <
typename T>
204 p.x = ((double)node_xy.x.value) * 1e-2;
205 p.y = ((double)node_xy.y.value) * 1e-2;
Sanity-check functions etc.
gm::Point getPointFromNodeXY(const T &node_xy)
Get the Point From NodeXY object.
uint16_t getIntersectionID(const IntersectionID &intsct_id)
Get the IntersectionID value.
double getLongitude(const Longitude &longitude)
Get the Longitude value.
MinuteOfTheYear getMinuteOfTheYear(const MapData &map)
Get the value of MinuteOfTheYear object MapData object.
uint32_t getMinuteOfTheYearValue(const MapData &map)
Get the value of MinuteOfTheYear value from MapData object.
double getLatitude(const Latitude &latitude)
Get the Latitude value.
double getElevation(const Elevation &elevation)
Get the Elevation value.
void throwIfNotPresent(const bool is_present, const std::string val_desc)
Throws an exception if the given value is not present.