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::PlannerStateCompare Struct Reference

This struct is used to compare two PlannerState objects based on their cost. More...

Public Member Functions

bool operator() (const PlannerState &stLeftHandSide, const PlannerState &stRightHandSide) const
 

Detailed Description

This struct is used to compare two PlannerState objects based on their cost.

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()()

bool pathplanners::GeoPlanner::PlannerStateCompare::operator() ( const PlannerState stLeftHandSide,
const PlannerState stRightHandSide 
) const
inline
156 {
157 // Tiebreaker: Compare based on cost, lower cost means higher priority. We want to keep the right-hand side if it has a lower cost.
158 return (stLeftHandSide.dGCost + stLeftHandSide.dHCost) > (stRightHandSide.dGCost + stRightHandSide.dHCost);
159 }

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