I am trying to use KalmanEstimator to estimate Ephemeris (using both ground-based and space-based measurements). I am getting the following error:
“org.hipparchus.exception.MathIllegalArgumentException: matrix must have at least one row
Here is how my code works:
First I create the KalmanEstimatorBuilder via:
Then I create a 6-dimensional process noise covariance matrix via:
and create a provider with this process noise covariance matrix via:
Then I use KalmanEstimatorBuilder.addPropagationConfiguration twice, once for the object to be observed and once for a space-based observer. Both the observed object and the space-based observer are represented as org.orekit.propagation.conversion.EphemerisPropagatorBuilder.
Do you have any ideas about why I am getting this error?
EphemerisPropagatorBuilder is meant to estimate measurements’ parameters only. The idea is to rely on a reference ephemeris (e.g. GNSS or LEO SP3) to estimate the bias of a ground station or a GNSS receiver.
The orbit cannot be estimated and the orbital drivers are automatically deselected.
Thus you need to select at least one measurement parameter to make it work.
That being said, I’m not sure the Kalman was ever tested with EphemerisPropagatorBuilder so it might still be buggy. For example, I don’t think that the case where " CovarianceMatrixProvider for orbital and propagation parameters is empty" is handled.
So I guess you ran into an issue. Could you eventually share your code, so we can see how we could fix it?