Public Member Functions | Private Member Functions | Private Attributes | List of all members
mavrosflight::ParamManager Class Reference

#include <param_manager.h>

Inheritance diagram for mavrosflight::ParamManager:
Inheritance graph
[legend]

Public Member Functions

int get_num_params ()
 
bool get_param_value (std::string name, double *value)
 
int get_params_received ()
 
bool got_all_params ()
 
virtual void handle_mavlink_message (const mavlink_message_t &msg)
 The handler function for mavlink messages to be implemented by derived classes. More...
 
bool load_from_file (std::string filename)
 
 ParamManager (MavlinkComm *const comm)
 
void register_param_listener (ParamListenerInterface *listener)
 
void request_params ()
 
bool save_to_file (std::string filename)
 
bool set_param_value (std::string name, double value)
 
void unregister_param_listener (ParamListenerInterface *listener)
 
bool unsaved_changes ()
 
bool write_params ()
 
 ~ParamManager ()
 

Private Member Functions

void handle_command_ack_msg (const mavlink_message_t &msg)
 
void handle_param_value_msg (const mavlink_message_t &msg)
 
bool is_param_id (std::string name)
 
void param_set_timer_callback (const ros::TimerEvent &event)
 
void request_param (int index)
 
void request_param_list ()
 

Private Attributes

MavlinkCommcomm_
 
bool first_param_received_
 
bool got_all_params_
 
std::vector< ParamListenerInterface * > listeners_
 
ros::NodeHandle nh_
 
size_t num_params_
 
bool param_set_in_progress_
 
std::deque< mavlink_message_t > param_set_queue_
 
ros::Timer param_set_timer_
 
std::map< std::string, Paramparams_
 
bool * received_
 
size_t received_count_
 
bool unsaved_changes_
 
bool write_request_in_progress_
 

Detailed Description

Definition at line 56 of file param_manager.h.

Constructor & Destructor Documentation

mavrosflight::ParamManager::ParamManager ( MavlinkComm *const  comm)

Definition at line 46 of file param_manager.cpp.

mavrosflight::ParamManager::~ParamManager ( )

Definition at line 63 of file param_manager.cpp.

Member Function Documentation

int mavrosflight::ParamManager::get_num_params ( )

Definition at line 359 of file param_manager.cpp.

bool mavrosflight::ParamManager::get_param_value ( std::string  name,
double *  value 
)

Definition at line 89 of file param_manager.cpp.

int mavrosflight::ParamManager::get_params_received ( )

Definition at line 371 of file param_manager.cpp.

bool mavrosflight::ParamManager::got_all_params ( )

Definition at line 376 of file param_manager.cpp.

void mavrosflight::ParamManager::handle_command_ack_msg ( const mavlink_message_t &  msg)
private

Definition at line 326 of file param_manager.cpp.

void mavrosflight::ParamManager::handle_mavlink_message ( const mavlink_message_t &  msg)
virtual

The handler function for mavlink messages to be implemented by derived classes.

Parameters
msgThe mavlink message to handle

Implements mavrosflight::MavlinkListenerInterface.

Definition at line 71 of file param_manager.cpp.

void mavrosflight::ParamManager::handle_param_value_msg ( const mavlink_message_t &  msg)
private

Definition at line 274 of file param_manager.cpp.

bool mavrosflight::ParamManager::is_param_id ( std::string  name)
private

Definition at line 354 of file param_manager.cpp.

bool mavrosflight::ParamManager::load_from_file ( std::string  filename)

Definition at line 211 of file param_manager.cpp.

void mavrosflight::ParamManager::param_set_timer_callback ( const ros::TimerEvent event)
private

Definition at line 381 of file param_manager.cpp.

void mavrosflight::ParamManager::register_param_listener ( ParamListenerInterface listener)

Definition at line 144 of file param_manager.cpp.

void mavrosflight::ParamManager::request_param ( int  index)
private

Definition at line 266 of file param_manager.cpp.

void mavrosflight::ParamManager::request_param_list ( )
private

Definition at line 259 of file param_manager.cpp.

void mavrosflight::ParamManager::request_params ( )

Definition at line 241 of file param_manager.cpp.

bool mavrosflight::ParamManager::save_to_file ( std::string  filename)

Definition at line 178 of file param_manager.cpp.

bool mavrosflight::ParamManager::set_param_value ( std::string  name,
double  value 
)

Definition at line 103 of file param_manager.cpp.

void mavrosflight::ParamManager::unregister_param_listener ( ParamListenerInterface listener)

Definition at line 163 of file param_manager.cpp.

bool mavrosflight::ParamManager::unsaved_changes ( )

Definition at line 84 of file param_manager.cpp.

bool mavrosflight::ParamManager::write_params ( )

Definition at line 125 of file param_manager.cpp.

Member Data Documentation

MavlinkComm* mavrosflight::ParamManager::comm_
private

Definition at line 94 of file param_manager.h.

bool mavrosflight::ParamManager::first_param_received_
private

Definition at line 100 of file param_manager.h.

bool mavrosflight::ParamManager::got_all_params_
private

Definition at line 104 of file param_manager.h.

std::vector<ParamListenerInterface*> mavrosflight::ParamManager::listeners_
private

Definition at line 92 of file param_manager.h.

ros::NodeHandle mavrosflight::ParamManager::nh_
private

Definition at line 106 of file param_manager.h.

size_t mavrosflight::ParamManager::num_params_
private

Definition at line 101 of file param_manager.h.

bool mavrosflight::ParamManager::param_set_in_progress_
private

Definition at line 109 of file param_manager.h.

std::deque<mavlink_message_t> mavrosflight::ParamManager::param_set_queue_
private

Definition at line 107 of file param_manager.h.

ros::Timer mavrosflight::ParamManager::param_set_timer_
private

Definition at line 108 of file param_manager.h.

std::map<std::string, Param> mavrosflight::ParamManager::params_
private

Definition at line 95 of file param_manager.h.

bool* mavrosflight::ParamManager::received_
private

Definition at line 103 of file param_manager.h.

size_t mavrosflight::ParamManager::received_count_
private

Definition at line 102 of file param_manager.h.

bool mavrosflight::ParamManager::unsaved_changes_
private

Definition at line 97 of file param_manager.h.

bool mavrosflight::ParamManager::write_request_in_progress_
private

Definition at line 98 of file param_manager.h.


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


rosflight
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 20:00:14