I-Seed drone's onboard service  0.0.9
Public Member Functions | Static Public Attributes | List of all members
waypoint Class Reference

Waypoint data. More...

#include <waypoint.h>

Public Member Functions

 waypoint (double latitude, double longitude)
 
 ~waypoint ()
 
bool is_default_altitude () const
 
void set_custom_altitude (float laser_range)
 
float altitude () const
 Waypoint altitude. More...
 
double lat () const
 Waypoint latitude. More...
 
double lon () const
 Waypoint longitude. More...
 
void set_ready (bool is_forward)
 Mark waypoint as ready. More...
 
bool is_forward_ready () const
 
bool is_backward_ready () const
 
bool has_detection () const
 
float heading () const
 
void save_detection (const detection_result &)
 When inference finished, save the detected objects. More...
 
detection_result get_detection () const
 Retrieve the detection results of the waypoint. More...
 

Static Public Attributes

static constexpr float expected_height {15.0F}
 Waypoint expected height, default height. More...
 

Detailed Description

Waypoint data.

Constructor & Destructor Documentation

◆ waypoint()

waypoint::waypoint ( double  latitude,
double  longitude 
)
defaultnoexcept

◆ ~waypoint()

waypoint::~waypoint ( )
default

Member Function Documentation

◆ is_default_altitude()

auto waypoint::is_default_altitude ( ) const
Returns
true if the current waypoint's altitude has a default value

◆ set_custom_altitude()

void waypoint::set_custom_altitude ( float  laser_range)
Parameters
[in]laser_rangeDrone's height value returned from laser measurement
Here is the call graph for this function:

◆ altitude()

auto waypoint::altitude ( ) const

Waypoint altitude.

◆ lat()

double waypoint::lat ( ) const
inline

Waypoint latitude.

◆ lon()

double waypoint::lon ( ) const
inline

Waypoint longitude.

◆ set_ready()

void waypoint::set_ready ( bool  is_forward)

Mark waypoint as ready.

Parameters
[in]is_forwardtrue - forward mission is ready, false - backward mission is ready
Here is the call graph for this function:

◆ is_forward_ready()

auto waypoint::is_forward_ready ( ) const
Returns
true If forward mission is ready
Here is the caller graph for this function:

◆ is_backward_ready()

auto waypoint::is_backward_ready ( ) const
Returns
true If backward mission is ready
Here is the caller graph for this function:

◆ has_detection()

auto waypoint::has_detection ( ) const
Returns
true If some objects were detected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ heading()

auto waypoint::heading ( ) const
Returns
Expected drone's heading in this waypoint
Note
In the forward mission, the drone heading is automatic, but when the backward mission is launched, the heading is set manually to match the same drone's position as in the forward mission.
Here is the call graph for this function:

◆ save_detection()

void waypoint::save_detection ( const detection_result result)

When inference finished, save the detected objects.

Here is the call graph for this function:

◆ get_detection()

auto waypoint::get_detection ( ) const

Retrieve the detection results of the waypoint.

Returns
detection_result
Here is the call graph for this function:

Member Data Documentation

◆ expected_height

constexpr float waypoint::expected_height {15.0F}
staticconstexpr

Waypoint expected height, default height.


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