public class UpdatableFrame extends Frame
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getAncestor, getDepth, getFrozenFrame, getName, getParent, getRoot, getTransformJacobian, getTransformProvider, getTransformTo, getTransformTo, getTransformTo, getTransformTo, isChildOf, isPseudoInertial, toString
public UpdatableFrame(Frame parent, Transform transform, String name)
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 frameIllegalArgumentException
- if the parent frame is nullpublic UpdatableFrame(Frame parent, Transform transform, String name, boolean pseudoInertial)
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 nullpublic void setTransform(Transform transform)
transform
- new transform from parent frame to instancepublic void updateTransform(Frame f1, Frame f2, Transform f1Tof2, AbsoluteDate date) throws PatriusException
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 transformPatriusException
- 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)
Copyright © 2020 CNES. All rights reserved.