-
Notifications
You must be signed in to change notification settings - Fork 2
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
Template limitation convertStructType
(Mixtures)
#668
Comments
HI @GearsAD , also see JuliaRobotics/IncrementalInference.jl#912 for the associated IIF code EDIT, actually more specific: |
Just a note, all that stuff in IIF has now been merged -- so you should be able to get the latest |
The error above looks to be because the Packed type is templated. I think it would fail further down once that was resolved, but the short term fix it to either encode the templating into the packed type (so the packed type saves the template information and resolves the full type using it), or to have a set of concrete types for each template possibility (this, I don't think, is practical, so the first option is preferable). |
HI @GearsAD, okay thanks, let's go with the first option. I will build it in to |
convertStructType
(Mixtures)
Ah, I learned some more. I will fix this issue and involves two stages:
|
EDIT: Updated Post
MWE:
The difference is that is actually a template type
PackedMixtureRelative{T}
, contrasted againstPackedLinearRelate
which is a concrete type. So we need a better solution for chomping away thePacked
portion:DistributedFactorGraphs.jl/src/Common.jl
Line 8 in 10bf5c3
Original Post
MWE:
But what currently happens is:
Which is not enough to reconstruct the type properly when unpacking. Need a lot of that structure to rebuild
MixtureRelative
properly.DistributedFactorGraphs.jl/src/services/Serialization.jl
Line 252 in 419a31d
DistributedFactorGraphs.jl/src/Common.jl
Line 4 in 419a31d
Example
DOWNLOAD FileDFG: test3.tar.gz
The text was updated successfully, but these errors were encountered: