|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.orekit.attitudes.Attitude
public class Attitude
This class handles attitude definition at a given date.
This class represents the rotation between a reference frame and the satellite frame, as well as the spin of the satellite (axis and rotation rate).
The state can be slightly shifted to close dates. This shift is based on a linear extrapolation for attitude taking the spin rate into account. It is not intended as a replacement for proper attitude propagation but should be sufficient for either small time shifts or coarse accuracy.
The instance Attitude is guaranteed to be immutable.
Orbit,
Serialized Form| Constructor Summary | |
|---|---|
Attitude(AbsoluteDate date,
Frame referenceFrame,
org.apache.commons.math.geometry.Rotation attitude,
org.apache.commons.math.geometry.Vector3D spin)
Creates a new instance. |
|
| Method Summary | |
|---|---|
static org.apache.commons.math.geometry.Vector3D |
estimateSpin(org.apache.commons.math.geometry.Rotation start,
org.apache.commons.math.geometry.Rotation end,
double dt)
Estimate spin between two orientations. |
AbsoluteDate |
getDate()
Get the date of attitude parameters. |
Frame |
getReferenceFrame()
Get the reference frame. |
org.apache.commons.math.geometry.Rotation |
getRotation()
Get the attitude rotation. |
org.apache.commons.math.geometry.Vector3D |
getSpin()
Get the satellite spin. |
Attitude |
shiftedBy(double dt)
Get a time-shifted attitude. |
Attitude |
withReferenceFrame(Frame newReferenceFrame)
Get a similar attitude with a specific reference frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Attitude(AbsoluteDate date,
Frame referenceFrame,
org.apache.commons.math.geometry.Rotation attitude,
org.apache.commons.math.geometry.Vector3D spin)
date - date at which attitude is definedreferenceFrame - reference frame from which attitude is definedattitude - rotation between reference frame and satellite framespin - satellite spin (axis and velocity, in satellite frame)| Method Detail |
|---|
public static org.apache.commons.math.geometry.Vector3D estimateSpin(org.apache.commons.math.geometry.Rotation start,
org.apache.commons.math.geometry.Rotation end,
double dt)
Estimation is based on a simple fixed rate rotation during the time interval between the two attitude.
start - start orientationend - end orientationdt - time elapsed between the dates of the two orientations
public Attitude shiftedBy(double dt)
The state can be slightly shifted to close dates. This shift is based on a linear extrapolation for attitude taking the spin rate into account. It is not intended as a replacement for proper attitude propagation but should be sufficient for either small time shifts or coarse accuracy.
dt - time shift in seconds
AbsoluteDate.shiftedBy(double),
PVCoordinates.shiftedBy(double),
Orbit.shiftedBy(double),
SpacecraftState.shiftedBy(double)
public Attitude withReferenceFrame(Frame newReferenceFrame)
throws OrekitException
If the instance reference frame is already the specified one, the instance itself is returned without any object creation. Otherwise, a new instance will be created with the specified reference frame. In this case, the required intermediate rotation and spin between the specified and the original reference frame will be inserted.
newReferenceFrame - desired reference frame for attitude
OrekitException - if conversion between reference frames failspublic AbsoluteDate getDate()
getDate in interface TimeStampedpublic Frame getReferenceFrame()
public org.apache.commons.math.geometry.Rotation getRotation()
public org.apache.commons.math.geometry.Vector3D getSpin()
The spin vector is defined in satellite frame.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||