HKUST-Aerial-Robotics / FIESTA

Fast Incremental Euclidean Distance Fields for Online Motion Planning of Aerial Robots
MIT License
632 stars 129 forks source link

Why use a self-defined hash function #9

Closed JINXER000 closed 4 years ago

JINXER000 commented 4 years ago

Dear author, I found it confusing in ESDFMap.h:24, where MatrixHash is defined. Why you designed the hash function like this, using transform as input to compute the hash value? What is the benefit? Thanks.

hlx1996 commented 4 years ago

Hello, The hash function is just a simple hash function that maps a matrix to an integer. In FIESTA, the only usage of this hash function is to map a 3D voxel coordinate to the index of the Voxel Information Structure.

陈奕州 notifications@github.com 于2020年1月13日周一 下午10:40写道:

Dear author, I found it confusing in ESDFMap.h:24, where MatrixHash is defined. Why you designed the hash function like this, using transform as input to compute the hash value? What is the benefit? Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HKUST-Aerial-Robotics/FIESTA/issues/9?email_source=notifications&email_token=ABRUW4MRWLOSGXCCBC52F6DQ5R4MXA5CNFSM4KGDJON2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFYVYGA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRUW4OSI7GTTLLELY5JDE3Q5R4MXANCNFSM4KGDJONQ .