#include <param_manager.h>
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 | |
MavlinkComm * | comm_ |
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, Param > | params_ |
bool * | received_ |
size_t | received_count_ |
bool | unsaved_changes_ |
bool | write_request_in_progress_ |
Definition at line 56 of file param_manager.h.
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.
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.
|
private |
Definition at line 326 of file param_manager.cpp.
|
virtual |
The handler function for mavlink messages to be implemented by derived classes.
msg | The mavlink message to handle |
Implements mavrosflight::MavlinkListenerInterface.
Definition at line 71 of file param_manager.cpp.
|
private |
Definition at line 274 of file param_manager.cpp.
|
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.
|
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.
|
private |
Definition at line 266 of file param_manager.cpp.
|
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.
|
private |
Definition at line 94 of file param_manager.h.
|
private |
Definition at line 100 of file param_manager.h.
|
private |
Definition at line 104 of file param_manager.h.
|
private |
Definition at line 92 of file param_manager.h.
|
private |
Definition at line 106 of file param_manager.h.
|
private |
Definition at line 101 of file param_manager.h.
|
private |
Definition at line 109 of file param_manager.h.
|
private |
Definition at line 107 of file param_manager.h.
|
private |
Definition at line 108 of file param_manager.h.
|
private |
Definition at line 95 of file param_manager.h.
|
private |
Definition at line 103 of file param_manager.h.
|
private |
Definition at line 102 of file param_manager.h.
|
private |
Definition at line 97 of file param_manager.h.
|
private |
Definition at line 98 of file param_manager.h.