54 const std::string& frame_id,
bool ,
59 const size_t LENGTH = 19;
60 if (sentence.get_body().size() != LENGTH)
62 std::stringstream error;
63 error <<
"Expected GPGSA length is " << LENGTH <<
". The actual length is "
64 << sentence.get_body().size();
70 msg.message_id = sentence.get_body()[0];
71 msg.auto_manual_mode = sentence.get_body()[1];
76 msg.sv_ids.resize(12, 0);
78 for (std::vector<std::string>::const_iterator
id =
79 sentence.get_body().begin() + 3;
80 id < sentence.get_body().begin() + 15; ++
id)
88 msg.sv_ids.resize(n_svs);