APM:Libraries
Classes | Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Friends | List of all members
AP_VisualOdom Class Reference

#include <AP_VisualOdom.h>

Collaboration diagram for AP_VisualOdom:
[legend]

Classes

struct  VisualOdomState
 

Public Types

enum  AP_VisualOdom_Type { AP_VisualOdom_Type_None = 0, AP_VisualOdom_Type_MAV = 1 }
 

Public Member Functions

 AP_VisualOdom ()
 
void init ()
 
bool enabled () const
 
bool healthy () const
 
const Vector3fget_angle_delta () const
 
const Vector3fget_position_delta () const
 
uint64_t get_time_delta_usec () const
 
float get_confidence () const
 
uint32_t get_last_update_ms () const
 
const Vector3fget_pos_offset (void) const
 
void handle_msg (mavlink_message_t *msg)
 

Static Public Attributes

static const struct AP_Param::GroupInfo var_info []
 

Private Attributes

AP_Int8 _type
 
AP_Vector3f _pos_offset
 
AP_Int8 _orientation
 
AP_VisualOdom_Backend_driver
 
VisualOdomState _state
 

Friends

class AP_VisualOdom_Backend
 

Detailed Description

Definition at line 27 of file AP_VisualOdom.h.

Member Enumeration Documentation

◆ AP_VisualOdom_Type

Enumerator
AP_VisualOdom_Type_None 
AP_VisualOdom_Type_MAV 

Definition at line 35 of file AP_VisualOdom.h.

Constructor & Destructor Documentation

◆ AP_VisualOdom()

AP_VisualOdom::AP_VisualOdom ( )

Definition at line 61 of file AP_VisualOdom.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ enabled()

bool AP_VisualOdom::enabled ( void  ) const

Definition at line 76 of file AP_VisualOdom.cpp.

Referenced by handle_msg(), and healthy().

Here is the caller graph for this function:

◆ get_angle_delta()

const Vector3f& AP_VisualOdom::get_angle_delta ( ) const
inline

Definition at line 59 of file AP_VisualOdom.h.

◆ get_confidence()

float AP_VisualOdom::get_confidence ( ) const
inline

Definition at line 62 of file AP_VisualOdom.h.

◆ get_last_update_ms()

uint32_t AP_VisualOdom::get_last_update_ms ( ) const
inline

Definition at line 63 of file AP_VisualOdom.h.

◆ get_pos_offset()

const Vector3f& AP_VisualOdom::get_pos_offset ( void  ) const
inline

Definition at line 66 of file AP_VisualOdom.h.

Here is the call graph for this function:

◆ get_position_delta()

const Vector3f& AP_VisualOdom::get_position_delta ( ) const
inline

Definition at line 60 of file AP_VisualOdom.h.

◆ get_time_delta_usec()

uint64_t AP_VisualOdom::get_time_delta_usec ( ) const
inline

Definition at line 61 of file AP_VisualOdom.h.

◆ handle_msg()

void AP_VisualOdom::handle_msg ( mavlink_message_t *  msg)

Definition at line 93 of file AP_VisualOdom.cpp.

Referenced by get_pos_offset(), and GCS_MAVLINK::handle_vision_position_delta().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ healthy()

bool AP_VisualOdom::healthy ( void  ) const

Definition at line 82 of file AP_VisualOdom.cpp.

Here is the call graph for this function:

◆ init()

void AP_VisualOdom::init ( void  )

Definition at line 67 of file AP_VisualOdom.cpp.

Friends And Related Function Documentation

◆ AP_VisualOdom_Backend

friend class AP_VisualOdom_Backend
friend

Definition at line 30 of file AP_VisualOdom.h.

Member Data Documentation

◆ _driver

AP_VisualOdom_Backend* AP_VisualOdom::_driver
private

Definition at line 81 of file AP_VisualOdom.h.

Referenced by enabled(), handle_msg(), and init().

◆ _orientation

AP_Int8 AP_VisualOdom::_orientation
private

Definition at line 78 of file AP_VisualOdom.h.

Referenced by AP_VisualOdom_Backend::set_deltas().

◆ _pos_offset

AP_Vector3f AP_VisualOdom::_pos_offset
private

Definition at line 77 of file AP_VisualOdom.h.

Referenced by get_pos_offset().

◆ _state

VisualOdomState AP_VisualOdom::_state
private

◆ _type

AP_Int8 AP_VisualOdom::_type
private

Definition at line 76 of file AP_VisualOdom.h.

Referenced by enabled(), and init().

◆ var_info

const AP_Param::GroupInfo AP_VisualOdom::var_info
static

Definition at line 71 of file AP_VisualOdom.h.

Referenced by AP_VisualOdom().


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