| 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 | { |
nothing calls this directly
no test coverage detected