local transforms = asset.require("scene/solarsystem/sun/transforms")
local kernels = asset.require("./kernels").PlutoKernels
asset.require("spice/base")



local PlutoBarycenter = {
  Identifier = "PlutoBarycenter",
  Parent = transforms.SolarSystemBarycenter.Identifier,
  Transform = {
    Translation = {
      Type = "SpiceTranslation",
      Target = "PLUTO BARYCENTER",
      Observer = "SSB",
      Kernels = kernels
    }
  },
  GUI = {
    Name = "Pluto Barycenter",
    Path = "/Solar System/Dwarf Planets/Pluto"
  }
}

asset.onInitialize(function()
  openspace.addSceneGraphNode(PlutoBarycenter)
end)
  
asset.onDeinitialize(function()
  openspace.removeSceneGraphNode(PlutoBarycenter)
end)
  
asset.export(PlutoBarycenter)



asset.meta = {
  Name = "Pluto Transforms",
  Version = "1.0",
  Description = "Pluto Barycenter transform",
  Author = "OpenSpace Team",
  URL = "http://openspaceproject.com",
  License = "MIT license"
}
