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