Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
mavros::extra_plugins::DistanceSensorPlugin Class Reference

Distance sensor plugin. More...

Inheritance diagram for mavros::extra_plugins::DistanceSensorPlugin:
Inheritance graph
[legend]

Public Member Functions

 DistanceSensorPlugin ()
 
Subscriptions get_subscriptions () override
 
void initialize (UAS &uas_) override
 
- Public Member Functions inherited from mavros::plugin::PluginBase
virtual ~PluginBase ()
 

Private Member Functions

void distance_sensor (uint32_t time_boot_ms, uint32_t min_distance, uint32_t max_distance, uint32_t current_distance, uint8_t type, uint8_t id, uint8_t orientation, uint8_t covariance, float horizontal_fov, float vertical_fov, std::array< float, 4 > quaternion)
 
void handle_distance_sensor (const mavlink::mavlink_message_t *msg, mavlink::common::msg::DISTANCE_SENSOR &dist_sen)
 

Private Attributes

std::string base_frame_id
 
ros::NodeHandle dist_nh
 
std::unordered_map< uint8_t, DistanceSensorItem::Ptrsensor_map
 

Friends

class DistanceSensorItem
 

Additional Inherited Members

- Public Types inherited from mavros::plugin::PluginBase
typedef boost::shared_ptr< PluginBase const > ConstPtr
 
typedef mavconn::MAVConnInterface::ReceivedCb HandlerCb
 
typedef std::tuple< mavlink::msgid_t, const char *, size_t, HandlerCbHandlerInfo
 
typedef boost::shared_ptr< PluginBasePtr
 
typedef std::vector< HandlerInfoSubscriptions
 
- Protected Member Functions inherited from mavros::plugin::PluginBase
virtual void capabilities_cb (UAS::MAV_CAP capabilities)
 
virtual void connection_cb (bool connected)
 
void enable_capabilities_cb ()
 
void enable_connection_cb ()
 
HandlerInfo make_handler (const mavlink::msgid_t id, void(_C::*fn)(const mavlink::mavlink_message_t *msg, const mavconn::Framing framing))
 
HandlerInfo make_handler (void(_C::*fn)(const mavlink::mavlink_message_t *, _T &))
 
 PluginBase ()
 
- Protected Attributes inherited from mavros::plugin::PluginBase
UASm_uas
 

Detailed Description

Distance sensor plugin.

This plugin allows publishing distance sensor data, which is connected to an offboard/companion computer through USB/Serial, to the FCU or vice-versa.

Definition at line 119 of file distance_sensor.cpp.


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


mavros_extras
Author(s): Vladimir Ermakov , Amilcar Lucas
autogenerated on Tue Jun 1 2021 02:36:37