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. |
- 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
581 {
582
583 this->stGPSLocation = stGPSLocation;
585 this->eType = eType;
586 this->dRadius = dRadius;
587 this->nID = nID;
588 }
UTMCoordinate ConvertGPSToUTM(const GPSCoordinate &stGPSCoord)
Given a GPS coordinate, convert to UTM and create a new UTMCoordinate object.
Definition GeospatialOperations.hpp:351
◆ 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. |
- 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
605 {
606
607 this->stUTMLocation = stUTMLocation;
609 this->eType = eType;
610 this->dRadius = dRadius;
611 this->nID = nID;
612 }
GPSCoordinate ConvertUTMToGPS(const UTMCoordinate &stUTMCoord)
Given a UTM coordinate, convert to GPS and create a new GPSCoordinate object.
Definition GeospatialOperations.hpp:396
◆ 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
647 {
648
649 return (stGPSLocation == stOtherWaypoint.stGPSLocation && stUTMLocation == stOtherWaypoint.stUTMLocation && eType == stOtherWaypoint.eType &&
650 dRadius == stOtherWaypoint.dRadius && nID == stOtherWaypoint.nID);
651 }
◆ 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:646
The documentation for this struct was generated from the following file: