selfdriving
Public Member Functions | Public Attributes | List of all members
mpp::TPS_Astar::NodeCoords Struct Reference

Public Member Functions

 NodeCoords ()=default
 
 NodeCoords (int32_t ix, int32_t iy)
 
 NodeCoords (int32_t ix, int32_t iy, int32_t iphi)
 
NodeCoords operator+ (const NodeCoords &o) const
 
std::string asString () const
 
bool operator== (const NodeCoords &o) const
 
bool operator!= (const NodeCoords &o) const
 
bool sameLocation (const NodeCoords &o) const
 

Public Attributes

int32_t idxX = 0
 
int32_t idxY = 0
 
std::optional< int32_t > idxYaw
 

Constructor & Destructor Documentation

◆ NodeCoords() [1/3]

mpp::TPS_Astar::NodeCoords::NodeCoords ( )
default

◆ NodeCoords() [2/3]

mpp::TPS_Astar::NodeCoords::NodeCoords ( int32_t  ix,
int32_t  iy 
)
inline

◆ NodeCoords() [3/3]

mpp::TPS_Astar::NodeCoords::NodeCoords ( int32_t  ix,
int32_t  iy,
int32_t  iphi 
)
inline

Member Function Documentation

◆ asString()

std::string mpp::TPS_Astar::NodeCoords::asString ( ) const
inline

◆ operator!=()

bool mpp::TPS_Astar::NodeCoords::operator!= ( const NodeCoords o) const
inline

◆ operator+()

NodeCoords mpp::TPS_Astar::NodeCoords::operator+ ( const NodeCoords o) const
inline

◆ operator==()

bool mpp::TPS_Astar::NodeCoords::operator== ( const NodeCoords o) const
inline

◆ sameLocation()

bool mpp::TPS_Astar::NodeCoords::sameLocation ( const NodeCoords o) const
inline

Returns true if: (1) two cells have heading and all (x,y,phi) are the same; or (2) at least one cell has no heading defined, and (x,y) are equal.

Member Data Documentation

◆ idxX

int32_t mpp::TPS_Astar::NodeCoords::idxX = 0

Integer cell indices for (x,y) in grid_

◆ idxY

int32_t mpp::TPS_Astar::NodeCoords::idxY = 0

◆ idxYaw

std::optional<int32_t> mpp::TPS_Astar::NodeCoords::idxYaw

Phi or Yaw index in grid_, or none if undefined/arbitrary


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