|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.orekit.frames.Frame org.orekit.frames.UpdatableFrame
public class UpdatableFrame
Frame whose transform from its parent can be updated.
Constructor Summary | |
---|---|
UpdatableFrame(Frame parent,
Transform transform,
String name)
Build a non-inertial frame from its transform with respect to its parent. |
|
UpdatableFrame(Frame parent,
Transform transform,
String name,
boolean pseudoInertial)
Build a frame from its transform with respect to its parent. |
Method Summary | |
---|---|
void |
setTransform(Transform transform)
Update the transform from the parent frame to the instance. |
void |
updateTransform(Frame f1,
Frame f2,
Transform f1Tof2,
AbsoluteDate date)
Update the transform from parent frame implicitly according to two other frames. |
Methods inherited from class org.orekit.frames.Frame |
---|
getAncestor, getDepth, getFrozenFrame, getName, getParent, getRoot, getTransformJacobian, getTransformProvider, getTransformTo, getTransformTo, getTransformTo, getTransformTo, isChildOf, isPseudoInertial, isQuasiInertial, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UpdatableFrame(Frame parent, Transform transform, String name) throws IllegalArgumentException
calling this constructor is equivalent to call
UpdatableFrame(parent, transform, name, false)
.
parent
- parent frame (must be non-null)transform
- transform from parent frame to instancename
- name of the frame
IllegalArgumentException
- if the parent frame is nullpublic UpdatableFrame(Frame parent, Transform transform, String name, boolean pseudoInertial) throws IllegalArgumentException
The convention for the transform is that it is from parent frame to instance. This means that the two following frames are similar:
Frame frame1 = new Frame(FramesFactory.getGCRF(), new Transform(t1, t2)); Frame frame2 = new Frame(new Frame(FramesFactory.getGCRF(), t1), t2);
parent
- parent frame (must be non-null)transform
- transform from parent frame to instancename
- name of the framepseudoInertial
- true if frame is considered pseudo-inertial
(i.e. suitable for propagating orbit)
IllegalArgumentException
- if the parent frame is nullMethod Detail |
---|
public void setTransform(Transform transform)
transform
- new transform from parent frame to instancepublic void updateTransform(Frame f1, Frame f2, Transform f1Tof2, AbsoluteDate date) throws OrekitException
This method allows to control the relative position of two parts of the global frames tree using any two frames in each part as control handles. Consider the following simplified frames tree as an example:
GCRF | -------------------------------- | | | Sun satellite Earth | | on-board antenna ground station | tracking antenna
Tracking measurements really correspond to the link between the ground
and on-board antennas. This is tightly linked to the transform between
these two frames, however neither frame is the direct parent frame of the
other one: the path involves four intermediate frames. When we process a
measurement, what we really want to update is the transform that defines
the satellite frame with respect to its parent GCRF frame. This
is the purpose of this method. This update is done by the following call,
where measurementTransform
represents the measurement as a
simple translation transform between the two antenna frames:
satellite.updateTransform(onBoardAntenna, trackingAntenna,
measurementTransform, date);
One way to represent the behavior of the method is to consider the sub-tree rooted at the instance on one hand (satellite and on-board antenna in the example above) and the tree containing all the other frames on the other hand (GCRF, Sun, Earth, ground station, tracking antenna). Both tree are considered as solid sets linked by a flexible spring, which is the transform we want to update. The method stretches the spring to make sure the transform between the two specified frames (one in each tree part) matches the specified transform.
f1
- first control frame (may be the instance itself)f2
- second control frame (may be the instance itself)f1Tof2
- desired transform from first to second control framedate
- date of the transform
OrekitException
- if the path between the two control frames does
not cross the link between instance and its parent frame or if some
intermediate transform failssetTransform(Transform)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |