Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
pathplanners::GeoPlanner::TileKeyHash Struct Reference

This struct is used to hash TileKey objects for use in unordered maps. It combines the X and Y coordinates to create a unique hash for each tile key. We hash stKey.nX and stKey.nY separately and combine them using XOR and bit shifting. More...

Public Member Functions

size_t operator() (const TileKey &stKey) const noexcept
 

Detailed Description

This struct is used to hash TileKey objects for use in unordered maps. It combines the X and Y coordinates to create a unique hash for each tile key. We hash stKey.nX and stKey.nY separately and combine them using XOR and bit shifting.

Author
clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
Date
2025-07-19

Member Function Documentation

◆ operator()()

size_t pathplanners::GeoPlanner::TileKeyHash::operator() ( const TileKey stKey) const
inlinenoexcept
207 {
208 // Combine the X and Y ints into one size_t hash.
209 return (std::hash<int>()(stKey.nX) << 16) ^ std::hash<int>()(stKey.nY);
210 }

The documentation for this struct was generated from the following file: