Package org.orekit.propagation.relative
Interface RelativeProvider
- All Superinterfaces:
AdditionalDataProvider<double[]>
- All Known Implementing Classes:
AbstractRelativeProvider,ClohessyWiltshireProvider,YamanakaAnkersenProvider
Interface for relative provider.
A relative provider is an interface extending AdditionalDataProvider to provide the relative state of a chaser S/C in regard to a target S/C as an AdditionalData. The target S/C is propagated with the "main" propagator where the additional data is added.
- Since:
- 14.0
- Author:
- Romain Cuvillon
-
Method Summary
Modifier and TypeMethodDescriptionextractChaserPVT(SpacecraftState targetState) Extracts the chaser's PVT in the target LOF from the given targetSpacecraftState.default TimeStampedPVCoordinatesextractChaserPVT(SpacecraftState targetState, Frame outputFrame) Extracts the chaser's PVT from the given targetSpacecraftStateand converts it to the desired output frame.default double[]getAdditionalData(SpacecraftState spacecraftState) Get the chaser state relative to a target, in target's LVLH LOF.Get the initial TimeStampedPVCoordinates of the chaser in the Local Orbital Frame of the target.getLof()Returns the LOF used by the provider.Get orbit of the target.voidsetInitialChaserPVTLof(TimeStampedPVCoordinates initialChaserPVTLof) Set the initial TimeStampedPVCoordinates of the chaser in the Local Orbital Frame of the target.voidsetTargetOrbit(Orbit targetOrbit) Set orbit of the target.default voidsetTargetTrueAnomaly(double trueAnomaly) CW doesn't use true anomaly, so default is a no-op Set the true anomaly of the target.Methods inherited from interface org.orekit.propagation.AdditionalDataProvider
getName, init, update, yields
-
Method Details
-
getLof
LOF getLof()Returns the LOF used by the provider.- Returns:
- the LOF used by the provider
-
getInitialChaserPVTLof
TimeStampedPVCoordinates getInitialChaserPVTLof()Get the initial TimeStampedPVCoordinates of the chaser in the Local Orbital Frame of the target.- Returns:
- initial TimeStampedPVCoordinates of the chaser in target's LOF
-
setInitialChaserPVTLof
Set the initial TimeStampedPVCoordinates of the chaser in the Local Orbital Frame of the target.- Parameters:
initialChaserPVTLof- initial TimeStampedPVCoordinates of the chaser in target's LOF
-
extractChaserPVT
Extracts the chaser's PVT in the target LOF from the given targetSpacecraftState.- Parameters:
targetState- target SpacecraftState- Returns:
- chaser's TimeStampedPVCoordinates in target's LOF
-
extractChaserPVT
Extracts the chaser's PVT from the given targetSpacecraftStateand converts it to the desired output frame.- Parameters:
targetState- target SpacecraftStateoutputFrame- desired frame in which to extract chaser's TimeStampedPVCoordinates- Returns:
- TimeStampedPVCoordinates in desired frame
-
getAdditionalData
Get the chaser state relative to a target, in target's LVLH LOF.- Specified by:
getAdditionalDatain interfaceAdditionalDataProvider<double[]>- Parameters:
spacecraftState- spacecraft state to which additional data should correspond- Returns:
- chaser Cartesian state in target's LVLH Local Orbital Frame.
-
getTargetOrbit
Orbit getTargetOrbit()Get orbit of the target.- Returns:
- orbit of the target
-
setTargetOrbit
Set orbit of the target.- Parameters:
targetOrbit- orbit of the target
-
setTargetTrueAnomaly
default void setTargetTrueAnomaly(double trueAnomaly) CW doesn't use true anomaly, so default is a no-op Set the true anomaly of the target.- Parameters:
trueAnomaly- true anomaly of the target
-