Definition of pseudo-inertial or quasi-inertial for local orbital frames

Hello,

we found a couple of issues with “pseudo-inertial” or “quasi-inertial” local orbital frames in Orekit:

first, the LocalOrbitalFrame class constructor hard-codes the resulting frame as non-pseudo-inertial (last argument to the super constructor is pseudoInertial = false)

public LocalOrbitalFrame(final Frame parent, final LOF lof,
                             final ExtendedPositionProvider provider,
                             final String name)
        throws IllegalArgumentException {
        super(parent, new LocalProvider(lof, provider, parent), name, false);
    }

however, the LOF input to this constructor may be considered pseudo-inertial, as it is the case for all LOFType.*_INERTIAL frames, e.g. QSW_INERTIAL.

second, and most important, the implementation of LOF.transformFromInertial is counter-intuitive for LOF instances that are pseudo-inertial. In this case, the Cartesian part of the output Transform considers only the position of the spacecraft, but not its velocity:

default Transform transformFromInertial(final AbsoluteDate date, final PVCoordinates pv) {
        if (isQuasiInertial()) {
            return new Transform(date, pv.getPosition().negate(), rotationFromInertial(date, pv));

basically, the *_INERTIAL local orbital frames are centered on the spacecraft, but their velocity is that of their parent frame, i.e. the frame in which the spacecraft orbit is defined. However, we would expect the velocity of these frozen frames being that of the spacecraft, and not that of their parent frame.
In other words, we would expect that the only difference between a *_INERTIAL frame and its non-inertial counterpart (e.g. QSW_INERTIAL and QSW) is their rotation rate, which should be zero for the first, and non-zero for the second. So the only difference in their Transform to a common pseudo-inertial parent frame should be the rotation rate in the angular part of the transform.

What is the definition of “pseudo-inertial” in Orekit? And what do you think of the above?

Cheers,
Alberto

Hi,

For the first point, you’re right, we should not pass false. Pseudo inertial in Orekit means basically no “fast” rotation (and rectilinear translation) wrt GCRF, with the exception of ICRF. That includes TOD, TEME

For the second, if the frame origin moved wrt Earth, we could not call them inertial (and we should then pass false). So they would need to be renamed, with NON_ROTATING or something. I see the appeal, however it’s a fairly significant API break. And I don’t know if it’s a big user need. I’ll let other weight in.

Cheers,
Romain.

Hi Romain, thanks!

so by this definition, a frame with axes aligned with ICRF/GCRF, but origin on a celestial body different from the SSB/Earth, such that the PV of this body are always zero when expressed in this frame, cannot be considered as pseudo-inertial either. This would put the Earth and the SSB in a privileged position.

Also, when computing the transform between e.g. ICRF and GCRF, the velocity of the Earth wrt the SSB is taken into account in the Cartesian part of the transform.
Instead, for LOF inertial to GCRF, the velocity of the spacecraft wrt the Earth is neglected, although recomputing the transform for a different date still changes the position part of its Cartesian component (as by definition the position of the spacecraft is always zero in LOF).

I agree that the *_INERTIAL LOFs are confusing and that the naming could be better. NON_ROTATING would be a much clearer indication of what the frame actually represents, if both positions and velocities are relative to the spacecraft and not the parent frame.

I would also argue that if it’s following a satellite that by definition has non-zero and significant linear acceleration, it can not be considered inertial at all.

Thinking about inertial versions of LOFs, I recall from my days working with Patrius (yes, the forbidden word has been spoken), that there is a FrozenFrame(Frame inputFrame, AbsoluteDate date) that does exactly what you would guess it does : it “freezes” the input frame at a given date, in both position and rotation. Typically used to generate launch vehicle “frozen IMU” frames, where at T0 minus a few seconds they take ITRF and “freeze” it so that the launch vehicle can integrate its trajectory in an inertial frame, relative to its launch site.

Maybe something similar could be done for LOFs so that instead of duplicating every LOF for an “inertial” version, we would just wrap a given LOF in a NonRotatingLOF(LOF lofIn), test it once, and call it a day ? The same thing could be done with the current “quasi-inertial” version of the *_INERTIAL LOFs, if they really are needed.

Out of curiosity though, what are people using the *_INERTIAL LOFs for exactly ? I’ve been using a lot of LOFs lately for relative proximity operations, but not once in my entire life have I needed a LOF that is non-rotating. I was quite confused when I first saw all those “inertial” LOFs in Orekit…

EDIT: I just browsed the forum a bit more and it seems that these “inertial” LOFs are mostly used for covariance transformation to simply express an inertial cartesian covariance matrix in a local set of axes without considering the “perturbing” effect of including the local frame’s rotation rate into the covariance matrix. I’m not sure I’m completely convinced that this is the better approach for expressing the covariance matrix in local orbital axes though, as it neglects an important part of the local orbital frame, but OK, I guess.

Hello,

The “_INERTIAL” suffix was introduced to comply with SANA registry: see here.
SANA registry has [LOF]_ROTATING and [LOF]_INERTIAL. We didn’t implement the “_ROTATING” suffix to avoid breaking APIs.

I would agree with you on this one, I think we should replace pv.getPosition().negate() with pv.negate().
But I’m confused with the definition of SANA registry, exemple with LVLH: “A quasi-inertial version of the LVLH_ROTATING frame. This system is quasi-inertial in the sense that it is treated as an inertial coordinate frame that is redefined at each time of interest.”

And this would indeed tend to prove you right in incorporating velocity in the tranform.

Maxime

I think it’s fair to say that they are indeed (edit: JPL based frames around celestial bodies are considered pseudo inertial in the library). As a matter of fact, Orekit is quite biased by geocentric applications. For instance, it would be good to scale time for numerical intergration when propagating heliocentric trajectories (rather than using seconds), but it’s not possible at the moment.

As Jerome pointed out, the so-called inertial version of LOF was introduced to pass covariances consistently with what some data providers do. Basically they’re made to be redefined as each epoch and thrown away after one use. They’re not intended to be used continuously in time. For a user like you Alberto that is more interested in actually following the orbit without rotating the axis, I agree that the current status doesn’t suit.

Cheers,
Romain.

In my world the gravitational parameter is always equal to one no matter the central body, so I agree with you on this.

If I am not wrong, the conversion of a covariance matrix does not require the Cartesian part of the transform. So you would never encounter this issue if that is the only use case.

I think there is no difference in building an instance of LocalOrbitalFrame per epoch, or build it once and reuse it. The class constructor takes as argument an ExtendedPositionProvider or a PVCoordinatesProvider, and the methods to compute a Transform to/from the LOF take as argument an epoch and the spacecraft PVCoordinates at that epoch.

This is not what I am interested in. I do want the Transform to be redefined at each epoch, such that the axes of the LOF are aligned with e.g. the spacecraft position and angular momentum vector for QSW at each epoch. But this does not require to redefine the frame at each epoch of interest.