-
Notifications
You must be signed in to change notification settings - Fork 991
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
/** | ||
* @brief Guided traget plugin | ||
* @file guided_target.cpp | ||
* @author Randy Mackay <[email protected]> , Sanket Sharma <[email protected]> | ||
* | ||
* @addtogroup plugin | ||
* @{ | ||
*/ | ||
/* | ||
* Copyright 2022 Sanket Sharma, Randy Mackay. | ||
* | ||
* This file is part of the mavros package and subject to the license terms | ||
* in the top-level LICENSE file of the mavros repository. | ||
* https:/mavlink/mavros/tree/master/LICENSE.md | ||
*/ | ||
|
||
#include <mavros/mavros_plugin.h> | ||
#include <mavros/setpoint_mixin.h> | ||
#include <eigen_conversions/eigen_msg.h> | ||
|
@@ -50,17 +66,11 @@ class GuidedTargetPlugin : public plugin::PluginBase, | |
|
||
|
||
// Subscriber for global origin (aka map origin). | ||
gp_origin_sub = spg_nh.subscribe("global_position/gp_origin", 10, &GuidedTargetPlugin::gp_origin_cb, this); | ||
|
||
|
||
|
||
|
||
gp_origin_sub = spg_nh.subscribe("global_position/gp_origin", 10, &GuidedTargetPlugin::gp_origin_cb, this); | ||
} | ||
|
||
Subscriptions get_subscriptions() override | ||
{ | ||
//return { /* Rx disabled */ }; | ||
|
||
return { | ||
make_handler(&GuidedTargetPlugin::handle_position_target_global_int) | ||
}; | ||
|