Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup defVariable and add getPointType #775

Merged
merged 3 commits into from
Jun 18, 2021
Merged

Conversation

Affie
Copy link
Member

@Affie Affie commented May 25, 2021

  • preparation for more manifold stuff
  • functions moved here from iif
  • add getPointType

@Affie Affie added this to the v0.x.0 milestone May 25, 2021
@Affie Affie force-pushed the maint/21Q2/fix_defVariable branch from c0393ff to c2ae4df Compare June 15, 2021 13:37
@Affie Affie modified the milestones: v0.x.0, v0.15.0 Jun 15, 2021
@Affie Affie changed the title Cleanup defVariable Cleanup defVariable and add getPointType Jun 18, 2021
@Affie Affie marked this pull request as ready for review June 18, 2021 06:29
@Affie Affie requested a review from dehann June 18, 2021 06:30
Copy link
Member

@dehann dehann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, we must just do the integration testing with downstream. Thanks for fixing the tests too!

@Affie
Copy link
Member Author

Affie commented Jun 18, 2021

Should work with these changes: JuliaRobotics/IncrementalInference.jl#1275

I haven't tested rome

@dehann
Copy link
Member

dehann commented Jun 18, 2021

Screenshot from 2021-06-18 14-47-18

julia> using DistributedFactorGraphs

julia> using IncrementalInference
[ Info: Precompiling IncrementalInference [904591bb-b899-562f-9e6f-b8df64c7d480]
[ Info: KernelDensityEstimate.FORCE_EVAL_DIRECT = true
ERROR: LoadError: LoadError: LoadError: LoadError: MethodError: no method matching var"@defVariable"(::LineNumberNode, ::Module, ::Symbol, ::Expr)
Closest candidates are:
  var"@defVariable"(::LineNumberNode, ::Module, ::Any, ::Any, ::Any) at /home/dehann/.julia/dev/DistributedFactorGraphs/src/services/DFGVariable.jl:89
Stacktrace:
  [1] #macroexpand#50
    @ ./expr.jl:112 [inlined]
  [2] macroexpand
    @ ./expr.jl:111 [inlined]
  [3] docm(source::LineNumberNode, mod::Module, meta::Any, ex::Any, define::Bool) (repeats 2 times)
    @ Base.Docs ./docs/Docs.jl:537
  [4] (::DocStringExtensions.var"#29#30"{typeof(DocStringExtensions.template_hook)})(::LineNumberNode, ::Vararg{Any, N} where N)
    @ DocStringExtensions ~/.julia/packages/DocStringExtensions/9Ot5N/src/templates.jl:11
  [5] var"@doc"(__source__::LineNumberNode, __module__::Module, x::Vararg{Any, N} where N)
    @ Core ./boot.jl:508
  [6] include(mod::Module, _path::String)
    @ Base ./Base.jl:386
  [7] include(x::String)
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/IncrementalInference.jl:1
  [8] top-level scope
    @ ~/.julia/dev/IncrementalInference/src/IncrementalInference.jl:427
  [9] include
    @ ./Base.jl:386 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1213
 [11] top-level scope
    @ none:1
 [12] eval
    @ ./boot.jl:360 [inlined]
 [13] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [14] top-level scope
    @ none:1
in expression starting at /home/dehann/.julia/dev/IncrementalInference/src/Variables/DefaultVariables.jl:23
in expression starting at /home/dehann/.julia/dev/IncrementalInference/src/Variables/DefaultVariables.jl:15
in expression starting at /home/dehann/.julia/dev/IncrementalInference/src/Variables/DefaultVariables.jl:15
in expression starting at /home/dehann/.julia/dev/IncrementalInference/src/IncrementalInference.jl:1
ERROR: Failed to precompile IncrementalInference [904591bb-b899-562f-9e6f-b8df64c7d480] to /home/dehann/.julia/compiled/v1.6/IncrementalInference/jl_alznRu.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
   @ Base ./loading.jl:1360
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1306
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1021
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:914
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:901

Latest branches for DFG (this 775) and IIF (1275):

(@v1.6) pkg> st DistributedFactorGraphs IncrementalInference
      Status `~/.julia/environments/v1.6/Project.toml`
  [b5cc3c7e] DistributedFactorGraphs v0.14.5 `~/.julia/dev/DistributedFactorGraphs`
  [904591bb] IncrementalInference v0.24.4 `~/.julia/dev/IncrementalInference`

@dehann
Copy link
Member

dehann commented Jun 18, 2021

I'm busy adding the point types on IIF 1275

@Affie
Copy link
Member Author

Affie commented Jun 18, 2021

I forgot to commit @defVariable changes, just did it now. JuliaRobotics/IncrementalInference.jl#1275 (comment)

@Affie
Copy link
Member Author

Affie commented Jun 18, 2021

I figured we first update DFG and iif with the new Vector{T} and then look at RoME, as not to break all the masters at once.

@dehann dehann merged commit be4d03b into master Jun 18, 2021
@Affie Affie deleted the maint/21Q2/fix_defVariable branch October 30, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change maintenance VariableType This used to be called softtype (#603)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants