SpiceTranslation
Inherits Translation
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
This is the SPICE NAIF name for the parent of the body whose translation is to be computed by the SpiceTranslation. It can either be a fully qualified name (such as ‘SOLAR SYSTEM BARYCENTER’) or a NAIF integer id code (such as ‘0’) |
|
Value of type ‘String’, or Value of type ‘Integer’ |
No |
|
This is the SPICE NAIF name for the body whose translation is to be computed by the SpiceTranslation. It can either be a fully qualified name (such as ‘EARTH’) or a NAIF integer id code (such as ‘399’) |
|
Value of type ‘String’, or Value of type ‘Integer’ |
No |
|
|
A date to lock the position to |
Yes |
|
|
|
A valid SPICE NAIF name for a reference frame |
Yes |
Inherited members from Translation
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The type of translation that is described in this element. The available types of translations depend on the configuration of the application and can be written to disk on application startup into the FactoryDocumentation |
|
Must name a valid Translation type |
No |
Asset Examples
1local transforms = asset.require("scene/solarsystem/sun/transforms")
2local kernels = asset.require("./kernels")
3local coreKernels = asset.require("spice/core")
4
5
6
7local BennuBarycenter = {
8 Identifier = "BennuBarycenter",
9 Parent = transforms.SolarSystemBarycenter.Identifier,
10 Transform = {
11 Translation = {
12 Type = "SpiceTranslation",
13 Target = kernels.ID.Bennu,
14 Observer = coreKernels.ID.SolarSystemBarycenter
15 }
16 },
17 GUI = {
18 Name = "Bennu Barycenter",
19 Path = "/Solar System/Missions/OSIRIS REx"
20 }
21}
22
23
24asset.onInitialize(function()
25 openspace.addSceneGraphNode(BennuBarycenter)
26end)
27
28asset.onDeinitialize(function()
29 openspace.removeSceneGraphNode(BennuBarycenter)
30end)
31
32asset.export(BennuBarycenter)