|
World Ocean Simulation System (WOSS) library
|
#include <uw-woss-waypoint-position.h>


Classes | |
| class | WayPoint |
Public Member Functions | |
| WossWpPosition () | |
| virtual | ~WossWpPosition () override=default |
| virtual int | command (int argc, const char *const *argv) override |
| virtual bool | isEquivalentTo (const woss::CoordZ &coordz) override |
| virtual woss::CoordZ | getLocation () override |
| virtual double | getVerticalOrientation () override |
| virtual double | getBearing () override |
| virtual double | getSpeed () |
Public Member Functions inherited from WossPosition | |
| WossPosition (double latitude, double longitude, double depth=0, double dist=woss::LOCATION_COMPARISON_DISTANCE) | |
| WossPosition (const woss::CoordZ &coordz=woss::CoordZ(), double dist=woss::LOCATION_COMPARISON_DISTANCE) | |
| virtual | ~WossPosition () override=default |
| virtual std::unique_ptr< Location > | create (double latitude, double longitude, double depth=0, double dist=woss::LOCATION_COMPARISON_DISTANCE) const |
| virtual std::unique_ptr< Location > | create (const woss::CoordZ &coordz=woss::CoordZ(), double dist=woss::LOCATION_COMPARISON_DISTANCE) const |
| virtual std::unique_ptr< Location > | clone () 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) | |
| Location (const Location ©)=default | |
| Location (Location &&tmp)=default | |
| virtual | ~Location ()=default |
| Location & | operator= (const Location ©)=default |
| Location & | operator= (Location &&tmp)=default |
| virtual bool | isValid () const |
| virtual void | setLocation (const CoordZ &coordz) |
| virtual void | setVerticalOrientation (double angle) |
| virtual void | setHorizontalOrientation (double angle) |
| virtual double | getHorizontalOrientation () |
Protected Types | |
| using | WayPointVect = std::vector< WayPoint > |
| using | TimeIdMap = std::map< double, int > |
| using | TIMIter = TimeIdMap::iterator |
| using | TIMRIter = TimeIdMap::reverse_iterator |
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 |
|
protected |
|
protected |
|
protected |
|
protected |
| WossWpPosition::WossWpPosition | ( | ) |
References time_threshold.
|
overridevirtualdefault |
|
protectedvirtual |
References addWayPoint(), WossWpPosition::WayPoint::getLoopId(), WossWpPosition::WayPoint::getSpeed(), WossWpPosition::WayPoint::getTotalLoops(), and waypoint_vect.
Referenced by command().

|
protectedvirtual |
References timeid_map, and waypoint_vect.
Referenced by addLoopPoint(), and command().
|
overridevirtual |
Reimplemented from WossPosition.
References addLoopPoint(), addWayPoint(), WossPosition::command(), WossPosition::getDepth(), WossPosition::getLatitude(), WossPosition::getLongitude(), woss::Location::setLocation(), and waypoint_vect.

|
overridevirtual |
Gets current bearing in [-pi,pi]
Reimplemented from woss::Location.
References woss::Location::bearing, last_time_update, time_threshold, and update().

|
overridevirtual |
Gets current coordinates
Reimplemented from woss::Location.
References woss::Location::getLocation(), last_time_update, time_threshold, and update().

|
virtual |
References current_speed, last_time_update, time_threshold, and update().

|
overridevirtual |
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
Reimplemented from woss::Location.
References last_time_update, time_threshold, update(), and woss::Location::vertical_orientation.

|
overridevirtual |
Checks if the woss::CoordZ given is equivalent to this Location
| coordz | valid woss::CoordZ to check |
Reimplemented from woss::Location.
References woss::Location::comparison_distance, woss::Location::curr_coordz, and woss::CoordZ::getCartDistance().

|
protectedvirtual |
References current_speed, last_time_update, woss::Location::setLocation(), timeid_map, updateBearing(), updateVerticalOrientation(), and waypoint_vect.
Referenced by getBearing(), getLocation(), getSpeed(), and getVerticalOrientation().

|
protectedvirtual |
References woss::Location::bearing, and woss::Coord::getInitialBearing().
Referenced by update().

|
protectedvirtual |
References woss::CoordZ::getDepth(), woss::Coord::getGreatCircleDistance(), WossPosition::max_vertical_orientation, WossPosition::min_vertical_orientation, and woss::Location::vertical_orientation.
Referenced by update().

|
protected |
Referenced by getSpeed(), and update().
|
protected |
Referenced by getBearing(), getLocation(), getSpeed(), getVerticalOrientation(), and update().
|
protected |
Referenced by getBearing(), getLocation(), getSpeed(), getVerticalOrientation(), and WossWpPosition().
|
protected |
Referenced by addWayPoint(), and update().
|
protected |
Referenced by addLoopPoint(), addWayPoint(), command(), and update().