Skip to content

Conversation

@Affie
Copy link
Member

@Affie Affie commented Aug 20, 2021

In place of JuliaRobotics/ApproxManifoldProducts.jl#152

from JuliaRobotics/RoME.jl#465

getSample for factors will then use this pattern:

function getSample(cf::CalcFactor{<:Pose2Pose2}, N::Int=1) 
  
  M = getManifold(Pose2)
  ϵ = getPointIdentity(Pose2)

  X = [sampleTangent(M, cf.factor.z, ϵ) for _=1:N] 
  return (X, )
end

@codecov
Copy link

codecov bot commented Aug 20, 2021

Codecov Report

Merging #1359 (15d2909) into 21Q3/bugfix/calcVariableDistExp (6077d84) will increase coverage by 0.02%.
The diff coverage is 42.10%.

Impacted file tree graph

@@                         Coverage Diff                         @@
##           21Q3/bugfix/calcVariableDistExp    #1359      +/-   ##
===================================================================
+ Coverage                            75.32%   75.35%   +0.02%     
===================================================================
  Files                                   69       70       +1     
  Lines                                 4953     4958       +5     
===================================================================
+ Hits                                  3731     3736       +5     
  Misses                                1222     1222              
Impacted Files Coverage Δ
src/IncrementalInference.jl 87.50% <ø> (ø)
src/ManifoldSampling.jl 26.66% <26.66%> (ø)
src/Factors/GenericFunctions.jl 61.53% <100.00%> (+14.59%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6077d84...15d2909. Read the comment docs.

@dehann
Copy link
Member

dehann commented Aug 20, 2021

HI @Affie , that pattern looks good to me thanks -- lets go with sampleTangent. Future versions can resolve wheter the N::Int part as internal to IIF or user provided feature.

@Affie Affie changed the title WIP for sampleTangent and samplePoint api concept sampleTangent and samplePoint Aug 21, 2021
@Affie Affie marked this pull request as ready for review August 21, 2021 16:02
@Affie
Copy link
Member Author

Affie commented Aug 21, 2021

I'm merging as it is passing tests. will make another pr for updates to factors to use it as it's bigger than anticipated.

@Affie Affie merged commit 2945c8e into 21Q3/bugfix/calcVariableDistExp Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants