World Ocean Simulation System (WOSS) library
WossWpPosition Class Reference
Inheritance diagram for WossWpPosition:
Inheritance graph
Collaboration diagram for WossWpPosition:
Collaboration graph

Classes

class  WayPoint
 

Public Member Functions

virtual int command (int argc, const char *const *argv)
 
virtual bool isEquivalentTo (const woss::CoordZ &coordz)
 
virtual woss::CoordZ getLocation ()
 
virtual double getVerticalOrientation ()
 
virtual double getBearing ()
 
virtual double getSpeed ()
 
- Public Member Functions inherited from WossPosition
 WossPosition (double latitude, double longitude, double depth=0, double dist=LOCATION_COMPARISON_DISTANCE)
 
 WossPosition (const woss::CoordZ &coordz=woss::CoordZ(), double dist=LOCATION_COMPARISON_DISTANCE)
 
virtual WossPositioncreate (double latitude, double longitude, double depth=0, double dist=LOCATION_COMPARISON_DISTANCE) const
 
virtual WossPositioncreate (const woss::CoordZ &coordz=woss::CoordZ(), double dist=LOCATION_COMPARISON_DISTANCE) const
 
virtual WossPositionclone () const
 
virtual void setLatitude (double val)
 
virtual void setLongitude (double val)
 
virtual void setDepth (double val)
 
virtual void setAltitude (double val)
 
virtual void setMinVerticalOrientation (double val)
 
virtual void setMaxVerticalOrientation (double val)
 
virtual void setX (double val)
 
virtual void setY (double val)
 
virtual void setZ (double val)
 
virtual double getX ()
 
virtual double getY ()
 
virtual double getZ ()
 
virtual double getLatitude ()
 
virtual double getLongitude ()
 
virtual double getDepth ()
 
virtual double getAltitude ()
 
virtual double getMinVerticalOrientation ()
 
virtual double getMaxVerticalOrientation ()
 
- Public Member Functions inherited from woss::Location
 Location (const CoordZ &coordz=CoordZ(), double dist=LOCATION_COMPARISON_DISTANCE)
 
 Location (double latitude, double longitude, double depth=0, double dist=LOCATION_COMPARISON_DISTANCE)
 
virtual ~Location ()
 
virtual bool isValid () const
 
virtual void setLocation (const CoordZ &coordz)
 
virtual void setVerticalOrientation (double angle)
 
virtual void setHorizontalOrientation (double angle)
 
virtual double getHorizontalOrientation ()
 
friend::std::ostream & operator<< (::std::ostream &os, const Location &instance)
 

Protected Types

typedef ::std::vector< WayPointWayPointVect
 
typedef ::std::map< double, int > TimeIdMap
 
typedef TimeIdMap::iterator TIMIter
 
typedef TimeIdMap::reverse_iterator TIMRIter
 

Protected Member Functions

virtual void update (double now)
 
virtual void updateVerticalOrientation (const woss::CoordZ &prev, const woss::CoordZ &curr)
 
virtual void updateBearing (const woss::CoordZ &prev, const woss::CoordZ &curr)
 
virtual double addWayPoint (const WayPoint &waypoint)
 
virtual double addLoopPoint (const WayPoint &waypoint)
 

Protected Attributes

double time_threshold
 
double last_time_update
 
double current_speed
 
WayPointVect waypoint_vect
 
TimeIdMap timeid_map
 
- Protected Attributes inherited from WossPosition
double min_vertical_orientation
 
double max_vertical_orientation
 
- Protected Attributes inherited from woss::Location
double comparison_distance
 
CoordZ curr_coordz
 
double vertical_orientation
 
double horizontal_orientation
 
double bearing
 

Member Function Documentation

◆ command()

int WossWpPosition::command ( int  argc,
const char *const *  argv 
)
virtual

Reimplemented from WossPosition.

◆ getBearing()

double WossWpPosition::getBearing ( )
virtual

Gets current bearing in [-pi,pi]

Returns
bearing [dec degrees]

Reimplemented from woss::Location.

References woss::Location::bearing.

◆ getLocation()

woss::CoordZ WossWpPosition::getLocation ( )
virtual

Gets current coordinates

Returns
valid woss::CoordZ

Reimplemented from woss::Location.

References woss::Location::getLocation().

Here is the call graph for this function:

◆ getVerticalOrientation()

double WossWpPosition::getVerticalOrientation ( )
virtual

Gets current vertical orientation from reference line (0 degrees = parallel to sea surface / bottom ). Negative values are towards the surface, while positive ones are towards sea bottom

Returns
difference angle [dec degrees]

Reimplemented from woss::Location.

References woss::Location::vertical_orientation.

◆ isEquivalentTo()

bool WossWpPosition::isEquivalentTo ( const woss::CoordZ coordz)
virtual

Checks if the woss::CoordZ given is equivalent to this Location

Parameters
coordzvalid woss::CoordZ to check
Returns
true if assumption is valid, false otherwise

Reimplemented from woss::Location.

References woss::Location::comparison_distance, woss::Location::curr_coordz, and woss::CoordZ::getCartDistance().

Here is the call graph for this function:

The documentation for this class was generated from the following files: