Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
mavros::std_plugins::RCIOPlugin Class Reference

RC IO plugin. More...

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

Public Member Functions

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

Private Types

using lock_guard = std::lock_guard< std::mutex >
 

Private Member Functions

void connection_cb (bool connected) override
 
void handle_rc_channels (const mavlink::mavlink_message_t *msg, mavlink::common::msg::RC_CHANNELS &channels)
 
void handle_rc_channels_raw (const mavlink::mavlink_message_t *msg, mavlink::common::msg::RC_CHANNELS_RAW &port)
 
void handle_servo_output_raw (const mavlink::mavlink_message_t *msg, mavlink::common::msg::SERVO_OUTPUT_RAW &port)
 
void override_cb (const mavros_msgs::OverrideRCIn::ConstPtr req)
 

Private Attributes

std::atomic< bool > has_rc_channels_msg
 
std::mutex mutex
 
ros::Subscriber override_sub
 
std::vector< uint16_t > raw_rc_in
 
std::vector< uint16_t > raw_rc_out
 
ros::Publisher rc_in_pub
 
ros::NodeHandle rc_nh
 
ros::Publisher rc_out_pub
 

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
virtual void capabilities_cb (UAS::MAV_CAP capabilities)
 
void enable_capabilities_cb ()
 
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

RC IO plugin.

Definition at line 28 of file rc_io.cpp.


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


mavros
Author(s): Vladimir Ermakov
autogenerated on Tue Jun 1 2021 02:36:27