ethz-asl / cad-percept

Bringing meshes to robotics.
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Hashes to identify precomputed properties on a mesh #88

Open hermannsblum opened 4 years ago

hermannsblum commented 4 years ago

As originally discussed here:

To cache the computation of the map planes, a nice abstraction would be that you just always call this module in the same way and then check whether you have a stored result for the given mesh file or otherwise produce and store it. For a start, you can probably just identify a mesh by the number of vertices or so. An improvement would then be to take a hash of the mesh to have a good statistic whether something changed.

Originally posted by @hermannsblum in https://github.com/ethz-asl/cad-percept/pull/86

By computing hashes over meshes, we can re-identify them and therefore load corresponding precomputations. As an approximation, we are using the number of vertices for now in the global localisation, but this is not really valid and should be changed before release.