This struct is used by the WaypointHandler class to store location, size, and type information about a given location of interest of waypoint.
More...
#include <GeospatialOperations.hpp>
|
WaypointType | eType |
|
double | dRadius |
|
int | nID |
|
This struct is used by the WaypointHandler class to store location, size, and type information about a given location of interest of waypoint.
- Author
- clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2024-02-02
◆ Waypoint() [1/2]
Construct a new Waypoint object.
- Parameters
-
stGPSLocation | - The location of this waypoint stored in a geoops namespace GPSCoordinate struct. |
eType | - The waypoint type. Navigation, Intermediate, Tag, Object, etc. |
dRadius | - The size of the waypoint. This is mainly only useful for objects or when you want the rover to just go to a general area. |
nID | - The unique identifier for this waypoint or a ARTag ID. |
- Note
- This will also store the equivalent UTM coordinate.
- Author
- clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2024-02-02
423 {
424
425 this->stGPSLocation = stGPSLocation;
427 this->eType = eType;
428 this->dRadius = dRadius;
429 this->nID = nID;
430 }
UTMCoordinate ConvertGPSToUTM(const GPSCoordinate &stGPSCoord)
Given a GPS coordinate, convert to UTM and create a new UTMCoordinate object.
Definition GeospatialOperations.hpp:302
◆ Waypoint() [2/2]
geoops::Waypoint::Waypoint |
( |
const geoops::UTMCoordinate & |
stUTMLocation, |
|
|
const WaypointType & |
eType = WaypointType::eUNKNOWN , |
|
|
const double |
dRadius = 0.0 , |
|
|
const int |
nID = -1 |
|
) |
| |
|
inline |
Construct a new Waypoint object.
- Parameters
-
stUTMLocation | - The location of this waypoint stored in a geoops namespace UTMCoordinate struct. |
eType | - The waypoint type. Navigation, Intermediate, Tag, Object, etc. |
dRadius | - The size of the waypoint. This is mainly only useful for objects or when you want the rover to just go to a general area. |
nID | - The unique identifier for this waypoint or a ARTag ID. |
- Note
- This will also store the equivalent GPS coordinate.
- Author
- clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2024-02-02
448 {
449
450 this->stUTMLocation = stUTMLocation;
452 this->eType = eType;
453 this->dRadius = dRadius;
454 this->nID = nID;
455 }
GPSCoordinate ConvertUTMToGPS(const UTMCoordinate &stUTMCoord)
Given a UTM coordinate, convert to GPS and create a new GPSCoordinate object.
Definition GeospatialOperations.hpp:347
◆ GetGPSCoordinate()
◆ GetUTMCoordinate()
◆ operator==()
bool geoops::Waypoint::operator== |
( |
const Waypoint & |
stOtherWaypoint | ) |
const |
|
inline |
Overridden operator equals for Waypoint struct.
- Parameters
-
stOtherWaypoint | - The other Waypoint struct we are comparing to. |
- Returns
- true - The two Waypoints are equal.
-
false - The two Waypoints are not equal.
- Author
- clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2024-02-04
490 {
491
492 return (stGPSLocation == stOtherWaypoint.stGPSLocation && stUTMLocation == stOtherWaypoint.stUTMLocation && eType == stOtherWaypoint.eType &&
493 dRadius == stOtherWaypoint.dRadius && nID == stOtherWaypoint.nID);
494 }
◆ operator!=()
bool geoops::Waypoint::operator!= |
( |
const Waypoint & |
stOtherWaypoint | ) |
const |
|
inline |
Overridden operator equals for Waypoint struct.
- Parameters
-
stOtherWaypoint | - The other Waypoint struct we are comparing to. |
- Returns
- true - The two Waypoints are equal.
-
false - The two Waypoints are not equal.
- Author
- clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2024-03-18
bool operator==(const Waypoint &stOtherWaypoint) const
Overridden operator equals for Waypoint struct.
Definition GeospatialOperations.hpp:489
The documentation for this struct was generated from the following file: