MCPcopy Create free account
hub / github.com/OctoMap/octomap / OcTreeVolumeSortPredicate

Function OcTreeVolumeSortPredicate

octomap/src/testing/test_iterators.cpp:112–119  ·  view source on GitHub ↗

for unique comparing, need to sort the lists:

Source from the content-addressed store, hash-verified

110
111// for unique comparing, need to sort the lists:
112bool OcTreeVolumeSortPredicate(const OcTreeVolume& lhs, const OcTreeVolume& rhs)
113{
114 return ( lhs.second < rhs.second
115 || (lhs.second == rhs.second &&
116 lhs.first.x() < rhs.first.x()
117 && lhs.first.y() < rhs.first.y()
118 && lhs.first.z() < rhs.first.z()));
119}
120
121
122double timediff(const timeval& start, const timeval& stop){

Callers

nothing calls this directly

Calls 3

xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected