You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
344 B
C++
23 lines
344 B
C++
/*Setting Pixhawk Mode*/
|
|
#ifndef MODE_H
|
|
#define MODE_H
|
|
|
|
#include <ros/ros.h>
|
|
#include <mavros_msgs/SetMode.h>
|
|
|
|
class ModeClass {
|
|
public:
|
|
ModeClass();
|
|
virtual ~ModeClass();
|
|
int set_Mode(std::string mode);
|
|
|
|
private:
|
|
// ROS NodeHandle
|
|
ros::NodeHandle node_handle_;
|
|
|
|
//SERVICE
|
|
ros::ServiceClient set_mode_client;
|
|
|
|
};
|
|
|
|
#endif // MODE_H
|