Skip to content

Commit

Permalink
Merge pull request #64 from JuliaRobotics/hotfix/deserializingPartials
Browse files Browse the repository at this point in the history
Fixing deserialization via Unmarshal
  • Loading branch information
dehann committed Jun 15, 2018
2 parents adc46ab + 7c430a4 commit 400c273
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PartialPose3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ mutable struct PackedPartialPose3XYYaw <: IncrementalInference.PackedInferenceTy
vecZij::Array{Float64,1} # 3translations, 3rotation
vecCov::Array{Float64,1}
PackedPartialPose3XYYaw() = new()
PackedPartialPose3XYYaw(x1::Vector{Float64}, x2::Array{Float64,2}) = new(x1, x2[:])
PackedPartialPose3XYYaw(x1::Vector{Float64}, x2::Array{Float64}) = new(x1, x2[:])
end
function convert(::Type{PartialPose3XYYaw}, d::PackedPartialPose3XYYaw)
return PartialPose3XYYaw( Distributions.MvNormal(d.vecZij,
Expand Down Expand Up @@ -150,8 +150,7 @@ mutable struct PackedPartialPose3XYYawNH <: IncrementalInference.PackedInference
vecCov::Array{Float64,1}
nullhypothesis::Vector{Float64}
PackedPartialPose3XYYawNH() = new()
PackedPartialPose3XYYawNH(x1::Vector{Float64}, x2::Vector{Float64},x3::Vector{Float64}) = new(x1, x2, x3)
PackedPartialPose3XYYawNH(x1::Vector{Float64}, x2::Array{Float64,2},x3::Vector{Float64}) = new(x1, x2[:], x3)
PackedPartialPose3XYYawNH(x1::Vector{Float64}, x2::Array{Float64}, x3::Vector{Float64}) = new(x1, x2[:], x3)
end
function convert(::Type{PartialPose3XYYawNH}, d::PackedPartialPose3XYYawNH)
return PartialPose3XYYawNH( Distributions.MvNormal(d.vecZij,
Expand Down

0 comments on commit 400c273

Please sign in to comment.