Public Member Functions | |
Controller (const std::string &worldFrame, const std::string &frame, const ros::NodeHandle &n) | |
void | run (double frequency) |
Private Types | |
enum | State { Idle = 0, Automatic = 1, TakingOff = 2, Landing = 3 } |
Private Member Functions | |
void | getTransform (const std::string &sourceFrame, const std::string &targetFrame, tf::StampedTransform &result) |
void | goalChanged (const geometry_msgs::PoseStamped::ConstPtr &msg) |
void | iteration (const ros::TimerEvent &e) |
bool | land (std_srvs::Empty::Request &req, std_srvs::Empty::Response &res) |
void | pidReset () |
bool | takeoff (std_srvs::Empty::Request &req, std_srvs::Empty::Response &res) |
Private Attributes | |
std::string | m_frame |
geometry_msgs::PoseStamped | m_goal |
tf::TransformListener | m_listener |
PID | m_pidX |
PID | m_pidY |
PID | m_pidYaw |
PID | m_pidZ |
ros::Publisher | m_pubNav |
ros::ServiceServer | m_serviceLand |
ros::ServiceServer | m_serviceTakeoff |
float | m_startZ |
State | m_state |
ros::Subscriber | m_subscribeGoal |
float | m_thrust |
std::string | m_worldFrame |
Definition at line 17 of file controller.cpp.
|
private |
Enumerator | |
---|---|
Idle | |
Automatic | |
TakingOff | |
Landing |
Definition at line 217 of file controller.cpp.
|
inline |
Definition at line 21 of file controller.cpp.
|
inlineprivate |
Definition at line 119 of file controller.cpp.
|
inlineprivate |
Definition at line 89 of file controller.cpp.
|
inlineprivate |
Definition at line 135 of file controller.cpp.
|
inlineprivate |
Definition at line 109 of file controller.cpp.
|
inlineprivate |
Definition at line 127 of file controller.cpp.
|
inline |
Definition at line 81 of file controller.cpp.
|
inlineprivate |
Definition at line 95 of file controller.cpp.
|
private |
Definition at line 227 of file controller.cpp.
|
private |
Definition at line 235 of file controller.cpp.
|
private |
Definition at line 229 of file controller.cpp.
|
private |
Definition at line 230 of file controller.cpp.
|
private |
Definition at line 231 of file controller.cpp.
|
private |
Definition at line 233 of file controller.cpp.
|
private |
Definition at line 232 of file controller.cpp.
|
private |
Definition at line 228 of file controller.cpp.
|
private |
Definition at line 238 of file controller.cpp.
|
private |
Definition at line 237 of file controller.cpp.
|
private |
Definition at line 240 of file controller.cpp.
|
private |
Definition at line 234 of file controller.cpp.
|
private |
Definition at line 236 of file controller.cpp.
|
private |
Definition at line 239 of file controller.cpp.
|
private |
Definition at line 226 of file controller.cpp.