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

Method convertStateToLocal

src/GNSS.cpp:149–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147
148
149 void TangentPlaneConverter::convertStateToLocal(Data &State)
150 {
151 /** check if the state has the right type */
152 if(State.getType() != DataType::Point3)
153 {
154 PRINT_ERROR("Wrong state Type: ", State.getType());
155 return;
156 }
157
158 /** extract values */
159 const Vector3 MeanIn = State.getMean();
160 const Matrix33 CovIn = State.getCovarianceMatrix();
161
162 /** convert */
163 Vector3 MeanOut;
164 Matrix33 CovOut;
165 this->convertToLocal(MeanIn, CovIn, MeanOut, CovOut);
166
167 /** write back */
168 Vector9 CovOutVect(CovOut.data());
169 State.setMean(MeanOut);
170 State.setCovarianceMatrix(CovOutVect);
171 }
172
173 void TangentPlaneConverter::convertStateToGlobal(Data &State)
174 {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected