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.
31 lines
510 B
C
31 lines
510 B
C
|
3 years ago
|
/*Publish Drone's status to topic "Flight_Information_reciver"*/
|
||
|
|
#ifndef PUBINFO_H
|
||
|
|
#define PUBINFO_H
|
||
|
|
|
||
|
|
#include <ros/ros.h>
|
||
|
|
#include <diagnostic_msgs/KeyValue.h>
|
||
|
|
#include "class_model/INFO.h"
|
||
|
|
|
||
|
|
|
||
|
|
class PubInfoClass {
|
||
|
|
public:
|
||
|
|
PubInfoClass();
|
||
|
|
virtual ~PubInfoClass();
|
||
|
|
void pub_info(INFO msg);
|
||
|
|
|
||
|
|
|
||
|
|
private:
|
||
|
|
// ROS NodeHandle
|
||
|
|
ros::NodeHandle node_handle_;
|
||
|
|
|
||
|
|
//SUBSCRIBE
|
||
|
|
|
||
|
|
//PUBLISH
|
||
|
|
ros::Publisher PubInfo;
|
||
|
|
INFO msg;
|
||
|
|
diagnostic_msgs::KeyValue info;
|
||
|
|
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // PUBINFO_H
|