public class RelativeTabulatedAttitudeLeg extends Object implements AttitudeLeg
TabulatedAttitude
class.LEG_NATURE
Constructor and Description |
---|
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
Frame frame,
List<Pair<Double,AngularCoordinates>> angularCoordinates)
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of angular coordinates
associated with a double representing the time elapsed since the reference date.
The rotation rates will be used for interpolation. |
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
Frame frame,
List<Pair<Double,AngularCoordinates>> angularCoordinates,
String natureIn)
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of angular coordinates
associated with a double representing the time elapsed since the reference date.
The rotation rates will be used for interpolation. |
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
List<Pair<Double,AngularCoordinates>> angularCoordinates,
int nbInterpolationPoints,
Frame frame)
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of angular coordinates
associated with a double representing the time elapsed since the reference date
and a number of points used for interpolation.
The rotation rates will be used for interpolation. |
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
List<Pair<Double,AngularCoordinates>> angularCoordinates,
int nbInterpolationPoints,
Frame frame,
String natureIn)
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of angular coordinates
associated with a double representing the time elapsed since the reference date and a number
of points used for interpolation.
The rotation rates will be used for interpolation. |
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
List<Pair<Double,Rotation>> orientations,
Frame frame)
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of Rotations
associated with a double representing the time elapsed since the reference date.
Rotations rates (set to 0's) will not be used for interpolation. |
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
List<Pair<Double,Rotation>> orientations,
Frame frame,
int nbInterpolationPoints)
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of Rotations
associated with a double representing the time elapsed since the reference date
and a number of points used for interpolation.
The List of angular coordinates is built with rotations rates set to 0's and rotations rates (set to 0's) will not be used for interpolation. |
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
List<Pair<Double,Rotation>> orientations,
Frame frame,
int nbInterpolationPoints,
String natureIn)
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of Rotations associated
with a double representing the time elapsed since the reference date and a number of points
used for interpolation.
The List of angular coordinates is built with rotations rates set to 0's and rotations rates (set to 0's) will not be used for interpolation. |
RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate,
List<Pair<Double,Rotation>> orientations,
Frame frame,
String natureIn)
Build a RelativeTabulatedAttitudeLeg with a reference date, a list of Rotations associated
with a double representing the time elapsed since the reference date.
Rotation rates (set to 0's) will not be used for interpolation. |
Modifier and Type | Method and Description |
---|---|
RelativeTabulatedAttitudeLeg |
copy(AbsoluteDateInterval newIntervalOfValidity)
Creates a new leg from this one.
|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Compute the attitude corresponding to an orbital state.
|
String |
getNature()
Returns the nature of the leg.
|
AbsoluteDateInterval |
getTimeInterval()
Returns the time interval of the leg.
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeSpinByFD, computeSpinDerivativeByFD
contains, getDate, getEnd, toPrettyString
getAttitude
public RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, List<Pair<Double,Rotation>> orientations, Frame frame) throws PatriusException
The number of points used for interpolation is the default one (defined in TabulatedAttitude
).
referenceDate
- reference dateorientations
- rotations. WARNING : these must be chronologically ordered.frame
- reference frame from which attitude is computedPatriusException
- if there is not enough data for Hermite interpolationpublic RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, List<Pair<Double,Rotation>> orientations, Frame frame, int nbInterpolationPoints) throws PatriusException
referenceDate
- reference dateorientations
- rotations. WARNING : these must be chronologically ordered.frame
- reference frame from which attitude is computednbInterpolationPoints
- number of points used for interpolationPatriusException
- if the number of points used for interpolation is < 1
public RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, Frame frame, List<Pair<Double,AngularCoordinates>> angularCoordinates) throws PatriusException
The number of points used for interpolation is the default one (defined in TabulatedAttitude
).
referenceDate
- reference dateangularCoordinates
- angular coordinates. WARNING : these must be chronologically ordered.frame
- reference frame from which attitude is computedPatriusException
- if there is not enough data for Hermite interpolationpublic RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, List<Pair<Double,AngularCoordinates>> angularCoordinates, int nbInterpolationPoints, Frame frame) throws PatriusException
referenceDate
- reference dateangularCoordinates
- angular coordinates WARNING : these must be chronologically ordered.frame
- reference frame from which attitude is computednbInterpolationPoints
- number of points used for interpolationPatriusException
- if the number of points used for interpolation is < 1
public RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, List<Pair<Double,Rotation>> orientations, Frame frame, String natureIn) throws PatriusException
The number of points used for interpolation is the default one (defined in TabulatedAttitude
).
referenceDate
- reference dateorientations
- rotations. WARNING : these must be chronologically ordered.frame
- reference frame from which attitude is computednatureIn
- leg naturePatriusException
- if there is not enough data for Hermite interpolationpublic RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, List<Pair<Double,Rotation>> orientations, Frame frame, int nbInterpolationPoints, String natureIn) throws PatriusException
referenceDate
- reference dateorientations
- rotations. WARNING : these must be chronologically ordered.frame
- reference frame from which attitude is computednbInterpolationPoints
- number of points used for interpolationnatureIn
- leg naturePatriusException
- if the number of points used for interpolation is < 1
public RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, Frame frame, List<Pair<Double,AngularCoordinates>> angularCoordinates, String natureIn) throws PatriusException
The number of points used for interpolation is the default one (defined in TabulatedAttitude
).
referenceDate
- reference dateangularCoordinates
- angular coordinates. WARNING : these must be chronologically ordered.frame
- reference frame from which attitude is computednatureIn
- leg naturePatriusException
- if there is not enough data for Hermite interpolationpublic RelativeTabulatedAttitudeLeg(AbsoluteDate referenceDate, List<Pair<Double,AngularCoordinates>> angularCoordinates, int nbInterpolationPoints, Frame frame, String natureIn) throws PatriusException
referenceDate
- reference dateangularCoordinates
- angular coordinates WARNING : these must be chronologically ordered.frame
- reference frame from which attitude is computednbInterpolationPoints
- number of points used for interpolationnatureIn
- leg naturePatriusException
- if the number of points used for interpolation is < 1
public AbsoluteDateInterval getTimeInterval()
getTimeInterval
in interface Leg
public Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
getAttitude
in interface AttitudeProvider
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computedPatriusException
- if attitude cannot be computed for provided datepublic void setSpinDerivativesComputation(boolean computeSpinDerivatives)
setSpinDerivativesComputation
in interface AttitudeProvider
computeSpinDerivatives
- true if spin derivatives should be computedpublic String getNature()
public RelativeTabulatedAttitudeLeg copy(AbsoluteDateInterval newIntervalOfValidity)
copy
in interface AttitudeLeg
copy
in interface Leg
newIntervalOfValidity
- The time interval of the leg to createLeg
valid on provided intervalCopyright © 2023 CNES. All rights reserved.