MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / convertStateToGlobal

Method convertStateToGlobal

src/GNSS.cpp:173–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 void TangentPlaneConverter::convertStateToGlobal(Data &State)
174 {
175 /** check if the state has the right type */
176 if(State.getType() != DataType::Point3)
177 {
178 PRINT_ERROR("Wrong state Type: ", State.getType());
179 return;
180 }
181
182 /** extract values */
183 const Vector3 MeanIn = State.getMean();
184 const Matrix33 CovIn = State.getCovarianceMatrix();
185
186 /** convert */
187 Vector3 MeanOut;
188 Matrix33 CovOut;
189 this->convertToGlobal(MeanIn, CovIn, MeanOut, CovOut);
190
191 /** write back */
192 Vector9 CovOutVect(CovOut.data());
193 State.setMean(MeanOut);
194 State.setCovarianceMatrix(CovOutVect);
195 }
196
197 void TangentPlaneConverter::convertMeasurementToLocal(Data &Measurement)
198 {

Callers

nothing calls this directly

Calls 6

convertToGlobalMethod · 0.95
getCovarianceMatrixMethod · 0.80
getTypeMethod · 0.45
getMeanMethod · 0.45
setMeanMethod · 0.45
setCovarianceMatrixMethod · 0.45

Tested by

no test coverage detected