| 157 | } |
| 158 | |
| 159 | void FactorGraph::addIMUPreintegrationFactor(StateList List, PreintegratedIMUResult IMUState) |
| 160 | { |
| 161 | /** create noise model */ |
| 162 | GaussianFull<15> IMUNoiseModel; |
| 163 | IMUNoiseModel.setCovarianceMatrix(IMUState.PreIntCov); |
| 164 | |
| 165 | /** add to factor graph */ |
| 166 | typedef typename FactorTypeTranslator<FactorType::IMUPretintegration, GaussianFull<15>>::Type FactorClassType; |
| 167 | addFactorGeneric<GaussianFull<15>, FactorClassType> (IMUNoiseModel, |
| 168 | List._List, |
| 169 | FactorType::IMUPretintegration, |
| 170 | nullptr, |
| 171 | true, |
| 172 | List._List.front().Timestamp, |
| 173 | IMUState); |
| 174 | } |
| 175 | |
| 176 | void FactorGraph::printReport() const |
| 177 | { |
nothing calls this directly
no test coverage detected