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

Landing Target plugin. More...

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

Public Member Functions

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

Private Member Functions

void cartesian_to_displacement (const Eigen::Vector3d &pos, Eigen::Vector2f &angle)
 Displacement: (not to be mixed with angular displacement) More...
 
void handle_landing_target (const mavlink::mavlink_message_t *msg, mavlink::common::msg::LANDING_TARGET &land_target)
 Receive landing target from FCU. More...
 
void landing_target (uint64_t time_usec, uint8_t target_num, uint8_t frame, Eigen::Vector2f angle, float distance, Eigen::Vector2f size, Eigen::Vector3d pos, Eigen::Quaterniond q, uint8_t type, uint8_t position_valid)
 
void landtarget_cb (const mavros_msgs::LandingTarget::ConstPtr &req)
 callback for raw LandingTarget msgs topic - useful if one has the data processed in another node More...
 
void pose_cb (const geometry_msgs::PoseStamped::ConstPtr &req)
 callback for PoseStamped msgs topic More...
 
void send_landing_target (const ros::Time &stamp, const Eigen::Affine3d &tr)
 Send landing target transform to FCU. More...
 
void transform_cb (const geometry_msgs::TransformStamped &transform)
 callback for TF2 listener More...
 
- Private Member Functions inherited from mavros::plugin::TF2ListenerMixin< LandingTargetPlugin >
void tf2_start (const char *_thd_name, void(LandingTargetPlugin::*cbp)(const geometry_msgs::TransformStamped &))
 
void tf2_start (const char *_thd_name, message_filters::Subscriber< T > &topic_sub, void(LandingTargetPlugin::*cbp)(const geometry_msgs::TransformStamped &, const typename T::ConstPtr &))
 

Private Attributes

double focal_length
 
double fov_x
 
double fov_y
 
MAV_FRAME frame
 
std::string frame_id
 
int image_height
 
int image_width
 
ros::Publisher land_target_pub
 
ros::Subscriber land_target_sub
 
std::string land_target_type
 
ros::Time last_transform_stamp
 
bool listen_lt
 
bool listen_tf
 
ros::Publisher lt_marker_pub
 
std::string mav_frame
 
ros::NodeHandle nh
 
ros::Subscriber pose_sub
 
bool send_tf
 
double target_size_x
 
double target_size_y
 
std::string tf_child_frame_id
 
std::string tf_frame_id
 
double tf_rate
 
LANDING_TARGET_TYPE type
 
- Private Attributes inherited from mavros::plugin::TF2ListenerMixin< LandingTargetPlugin >
std::string tf_thd_name
 
std::thread tf_thread
 

Friends

class TF2ListenerMixin
 

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 connection_cb (bool connected)
 
void enable_connection_cb ()
 
HandlerInfo make_handler (void(_C::*fn)(const mavlink::mavlink_message_t *, _T &))
 
HandlerInfo make_handler (const mavlink::msgid_t id, void(_C::*fn)(const mavlink::mavlink_message_t *msg, const mavconn::Framing framing))
 
 PluginBase ()
 
- Protected Attributes inherited from mavros::plugin::PluginBase
UASm_uas
 

Detailed Description

Landing Target plugin.

This plugin is intended to publish the location of a landing area captured from a downward facing camera to the FCU and/or receive landing target tracking data coming from the FCU.

Definition at line 38 of file landing_target.cpp.


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


mavros_extras
Author(s): Vladimir Ermakov
autogenerated on Mon Jul 8 2019 03:20:18