Interface CcsdsFrameMapper
-
- All Known Implementing Classes:
OrekitCcsdsFrameMapper
public interface CcsdsFrameMapperAn interface for creating an OrekitFramefrom the specification in a CCSDS NDM file. Note that CCSDS uses "frame" to mean only orientation, while Orekit uses "frame" to mean origin and orientation. Some NDM files provide different information, so there are several methods in the interface:buildCcsdsFrame(FrameFacade, AbsoluteDate)for when only an orientation is provided. E.g. covariance section of an OEM.buildCcsdsFrame(BodyFacade, FrameFacade, AbsoluteDate)for when a center and orientation are provided. E.g. in the trajectory section of an OEM.
Notes for implementors: Orekit will shortcut frame transformations if frames are
==. So for best performance, memoize created frames, similar to howFramesis implemented. Also,EphemerisFile.EphemerisSegment.getInertialFrame()uses the closest frame ancestor by default, so it is better to do translations first, then rotations.- Since:
- 14.0
- Author:
- Evan M. Ward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FramebuildCcsdsFrame(BodyFacade center, FrameFacade orientation, AbsoluteDate frameEpoch)Create an OrekitFramefrom the center, alignment, and epoch specified in a CCSDS NDM.FramebuildCcsdsFrame(FrameFacade orientation, AbsoluteDate frameEpoch)Create an OrekitFramefrom the alignment specified in a CCSDS NDM.
-
-
-
Method Detail
-
buildCcsdsFrame
Frame buildCcsdsFrame(FrameFacade orientation, AbsoluteDate frameEpoch)
Create an OrekitFramefrom the alignment specified in a CCSDS NDM.- Parameters:
orientation- the attitude of the returned frame.frameEpoch- the epoch of the returned frame, if not intrinsic to the definition of the reference frame. May benullif not specified in the file. Many frames will ignore this value.- Returns:
- a
Framewith the given orientation. Nevernull. - Throws:
OrekitException- if a frame cannot be constructed for the given orientation.- Since:
- 14.0
-
buildCcsdsFrame
Frame buildCcsdsFrame(BodyFacade center, FrameFacade orientation, AbsoluteDate frameEpoch)
Create an OrekitFramefrom the center, alignment, and epoch specified in a CCSDS NDM.- Parameters:
center- the origin of the returned frame.orientation- the attitude of the returned frame.frameEpoch- the epoch of the returned frame, if not intrinsic to the definition of the reference frame. May benullif not specified in the file. Many frames will ignore this value.- Returns:
- a
Framewith the given center and orientation. Nevernull. - Throws:
OrekitException- if a frame cannot be constructed for the given center and orientation.- Since:
- 14.0
-
-