Public Member Functions | Protected Attributes

JAUS::Waypoint Class Reference

A simple data structure for deriving Local or Global waypoints. More...

#include <waypoint.h>

Inheritance diagram for JAUS::Waypoint:
JAUS::GlobalWaypoint JAUS::ReportGlobalWaypoint JAUS::SetGlobalWaypoint

List of all members.

Public Member Functions

 Waypoint ()
 Constructor.
virtual ~Waypoint ()
 Destructor.
void SetCurrentWaypoint (const bool onFlag=true)
 Method to set this waypoint as the current/active waypoint being navigated to by the unmanned system.
void SetWaypointAcheived (const bool flag=true)
 Method to mark a waypoint as finished.
bool IsCurrentWaypoint () const
bool IsWaypointAcheived () const
virtual bool IsSameAs (const Waypoint *waypoint, const double errorInMeters=0.25) const =0

Protected Attributes

bool mActiveFlag
 Is this the current active waypoint we are driving to?
bool mFinishedFlag
 Flag to mark if the waypoint is completed (for internal use only).

Detailed Description

A simple data structure for deriving Local or Global waypoints.

This structure contains data common to all waypoints, but not necessarily data included in any message structures.

Definition at line 58 of file waypoint.h.


Constructor & Destructor Documentation

Waypoint::Waypoint (  )

Constructor.

Definition at line 50 of file waypoint.cpp.

Waypoint::~Waypoint (  ) [virtual]

Destructor.

Definition at line 60 of file waypoint.cpp.


Member Function Documentation

bool Waypoint::IsCurrentWaypoint (  ) const

return True if the waypoint is currently being navigated to, false otherwise.

Definition at line 100 of file waypoint.cpp.

virtual bool JAUS::Waypoint::IsSameAs ( const Waypoint waypoint,
const double  errorInMeters = 0.25 
) const [pure virtual]

Implemented in JAUS::GlobalWaypoint.

bool Waypoint::IsWaypointAcheived (  ) const

return True if the waypoint has been marked as completed at some point in time, false otherwise.

Definition at line 108 of file waypoint.cpp.

void Waypoint::SetCurrentWaypoint ( const bool  onFlag = true )

Method to set this waypoint as the current/active waypoint being navigated to by the unmanned system.

Parameters:
[in]onFlagIf true, sets as active, false otherwise.

Definition at line 71 of file waypoint.cpp.

void Waypoint::SetWaypointAcheived ( const bool  flag = true )

Method to mark a waypoint as finished.

This is just additional data that can be optionally used by a list driver or waypoint driver to mark that status of a waypoint. This data is not part of any current JAUS message.

Parameters:
[in]flagIf true, sets as finished, false otherwise.

Definition at line 88 of file waypoint.cpp.


Member Data Documentation

bool JAUS::Waypoint::mActiveFlag [protected]

Is this the current active waypoint we are driving to?

Definition at line 74 of file waypoint.h.

Flag to mark if the waypoint is completed (for internal use only).

Definition at line 75 of file waypoint.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines