JuliaSpaceMissionDesign / FrameTransformations.jl

A modern, high-performance and comprehensive set of tools for transformations between any standard and user-defined reference frame.
MIT License
19 stars 3 forks source link

no method matching _vector3_forward(::FrameSystem{…}, ::Vector{…}, ::FrameTransformations.FramePointNode{…}, ::Float64) #67

Closed jackyarndley closed 1 month ago

jackyarndley commented 2 months ago

Hi, I've been trying to use ecliptic frames but unfortunately seem to be getting this error:

ERROR: MethodError: no method matching _vector3_forward(::FrameSystem{…}, ::Vector{…}, ::FrameTransformations.FramePointNode{…}, ::Float64)
The function `_vector3_forward` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  _vector3_forward(::FrameSystem, ::FrameTransformations.FramePointNode, ::Vector{Int64}, ::Number)

For this case the code I used is (with DE440 ephemeris object as eph):

F = FrameSystem{2, Float64}()

add_axes_icrf!(F)
add_axes_ecl2000!(F)

add_point_root!(F, :SSB, 0, 1)

add_point_ephemeris!(F, eph, :Sun, 10)
add_point_ephemeris!(F, eph, :EMB, 3)

add_point_ephemeris!(F, eph, :Earth, 399)
add_point_ephemeris!(F, eph, :Moon, 301)

vector3(F, :Sun, :Moon, :ECL2000, 0.0)

I'm pretty sure this isn't just on my end so checking it out would be much appreciated. Thanks.

andreapasquale94 commented 1 month ago

Hi @jackyarndley, FYI I finally had the chance to push the branch relative to v3.0. It needs some tests still and I would like to polish some parts before the release.