#include <iostream>
#include <ros/ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <nav_msgs/Odometry.h>
#include "std_msgs/Float64.h"
#include <mavros_msgs/CommandBool.h>
#include <mavros_msgs/SetMode.h>
#include <mavros_msgs/State.h>
#include <mavros_msgs/PositionTarget.h>
#include <unistd.h>
#include <geometry_msgs/Pose2D.h>
#include <mavros_msgs/CommandTOL.h>
#include <time.h>
#include <cmath>
#include <math.h>
#include <ros/duration.h>
Go to the source code of this file.
|
void | state_cb (const mavros_msgs::State::ConstPtr &msg) |
|
void | pose_cb (const geometry_msgs::PoseStamped::ConstPtr &msg) |
|
void | heading_cb (const std_msgs::Float64::ConstPtr &msg) |
|
void | setHeading (float heading) |
|
void | setDestination (float x, float y, float z) |
|
int | main (int argc, char **argv) |
|
◆ heading_cb()
void heading_cb |
( |
const std_msgs::Float64::ConstPtr & |
msg | ) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ pose_cb()
void pose_cb |
( |
const geometry_msgs::PoseStamped::ConstPtr & |
msg | ) |
|
◆ setDestination()
void setDestination |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
◆ setHeading()
void setHeading |
( |
float |
heading | ) |
|
◆ state_cb()
void state_cb |
( |
const mavros_msgs::State::ConstPtr & |
msg | ) |
|
◆ current_heading
std_msgs::Float64 current_heading |
◆ current_pose
geometry_msgs::PoseStamped current_pose |
◆ current_state
mavros_msgs::State current_state |
◆ GYM_OFFSET
◆ pose
geometry_msgs::PoseStamped pose |