26 gga.
fields.altitude_meters = msg.altitude;
27 gga.
fields.latitude_degrees = msg.latitude;
28 gga.
fields.longitude_degrees = msg.longitude;
30 switch (msg.status.status)
33 gga.
fields.fix_quality = 0;
36 gga.
fields.fix_quality = 1;
39 gga.
fields.fix_quality = 2;
42 gga.
fields.fix_quality = 3;
45 gga.
fields.fix_quality = 0;
56 sensor_msgs::NavSatFix& msg)
59 msg.header = msg_header;
67 msg.altitude = gga.
fields.altitude_meters;
68 msg.latitude = gga.
fields.latitude_degrees;
69 msg.longitude = gga.
fields.longitude_degrees;
74 switch (gga.
fields.fix_quality)
77 msg.status.status = -1;
80 msg.status.status = 0;
83 msg.status.status = 2;
86 msg.status.status = 1;
91 msg.status.status = 0;
95 msg.status.service = 1;
MSG_CLASS & getMsgByClass()
void setMsg(const MSG_CLASS &msg)
bool mrpt2ros(const CObservationGPS &obj, const std_msgs::Header &msg_header, sensor_msgs::NavSatFix &msg)
File includes methods for converting CNetworkOfPoses*DInf <=> NetworkOfPoses message types...
bool ros2mrpt(const sensor_msgs::NavSatFix &msg, CObservationGPS &obj)