Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
mavros::std_plugins::HomePositionPlugin Class Reference

home position plugin. More...

Inheritance diagram for mavros::std_plugins::HomePositionPlugin:
Inheritance graph
[legend]

Public Member Functions

Subscriptions get_subscriptions ()
 Return vector of MAVLink message subscriptions (handlers) More...
 
 HomePositionPlugin ()
 
void initialize (UAS &uas_)
 Plugin initializer. More...
 
- Public Member Functions inherited from mavros::plugin::PluginBase
virtual ~PluginBase ()
 

Private Member Functions

bool call_get_home_position (void)
 
void connection_cb (bool connected) override
 
void handle_home_position (const mavlink::mavlink_message_t *msg, mavlink::common::msg::HOME_POSITION &home_position)
 
void home_position_cb (const mavros_msgs::HomePosition::ConstPtr &req)
 
bool req_update_cb (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res)
 
void timeout_cb (const ros::TimerEvent &event)
 

Private Attributes

ros::NodeHandle hp_nh
 
ros::Publisher hp_pub
 
ros::Subscriber hp_sub
 
ros::Timer poll_timer
 
const ros::Duration REQUEST_POLL_TIME_DT
 position refresh poll interval More...
 
ros::ServiceServer update_srv
 

Static Private Attributes

static constexpr int REQUEST_POLL_TIME_MS = 10000
 

Additional Inherited Members

- Public Types inherited from mavros::plugin::PluginBase
using ConstPtr = boost::shared_ptr< PluginBase const >
 
using HandlerCb = mavconn::MAVConnInterface::ReceivedCb
 generic message handler callback More...
 
using HandlerInfo = std::tuple< mavlink::msgid_t, const char *, size_t, HandlerCb >
 Tuple: MSG ID, MSG NAME, message type into hash_code, message handler callback. More...
 
using Ptr = boost::shared_ptr< PluginBase >
 
using Subscriptions = std::vector< HandlerInfo >
 Subscriptions vector. More...
 
- Protected Member Functions inherited from mavros::plugin::PluginBase
void enable_connection_cb ()
 
template<class _C >
HandlerInfo make_handler (const mavlink::msgid_t id, void(_C::*fn)(const mavlink::mavlink_message_t *msg, const mavconn::Framing framing))
 
template<class _C , class _T >
HandlerInfo make_handler (void(_C::*fn)(const mavlink::mavlink_message_t *, _T &))
 
 PluginBase ()
 Plugin constructor Should not do anything before initialize() More...
 
- Protected Attributes inherited from mavros::plugin::PluginBase
UASm_uas
 

Detailed Description

home position plugin.

Publishes home position.

Definition at line 32 of file home_position.cpp.


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


mavros
Author(s): Vladimir Ermakov
autogenerated on Mon Jul 8 2019 03:20:11