forked from jsk-ros-pkg/jsk_aerial_robot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hugmy] add template for hugmy navigation
- Loading branch information
1 parent
fce7ce4
commit 5298913
Showing
5 changed files
with
64 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include <aerial_robot_control/flight_navigation.h> | ||
|
||
namespace aerial_robot_navigation | ||
{ | ||
class HugmyNavigator : public BaseNavigator | ||
{ | ||
public: | ||
HugmyNavigator(); | ||
virtual ~HugmyNavigator() = default; | ||
|
||
void initialize(ros::NodeHandle nh, ros::NodeHandle nhp, | ||
boost::shared_ptr<aerial_robot_model::RobotModel> robot_model, | ||
boost::shared_ptr<aerial_robot_estimation::StateEstimator> estimator, | ||
double loop_du) override; | ||
void update() override; | ||
}; | ||
}; |
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<library path="lib/libhugmy_navigation"> | ||
<class name="aerial_robot_navigation/hugmy_navigation" type="aerial_robot_navigation::HugmyNavigator" base_class_type="aerial_robot_navigation::BaseNavigator"> | ||
<description> hugmy navigation plugin </description> | ||
</class> | ||
</library> |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include <hugmy/navigation/hugmy_navigation.h> | ||
|
||
using namespace aerial_robot_navigation; | ||
|
||
HugmyNavigator::HugmyNavigator(): | ||
BaseNavigator() | ||
{ | ||
} | ||
|
||
|
||
void HugmyNavigator::initialize(ros::NodeHandle nh, ros::NodeHandle nhp, | ||
boost::shared_ptr<aerial_robot_model::RobotModel> robot_model, | ||
boost::shared_ptr<aerial_robot_estimation::StateEstimator> estimator, | ||
double loop_du) | ||
{ | ||
/* initialize the flight control */ | ||
BaseNavigator::initialize(nh, nhp, robot_model, estimator, loop_du); | ||
} | ||
|
||
void HugmyNavigator::update() | ||
{ | ||
BaseNavigator::update(); | ||
} | ||
|
||
/* plugin registration */ | ||
#include <pluginlib/class_list_macros.h> | ||
PLUGINLIB_EXPORT_CLASS(aerial_robot_navigation::HugmyNavigator, aerial_robot_navigation::BaseNavigator); |