ros_broker.h
Go to the documentation of this file.
1 
23 #ifndef ROS_BROKER_H_
24 #define ROS_BROKER_H_
25 
26 #include <iostream>
27 #include <ros/ros.h>
29 
31 #include "ros_broker/GSDFPacket.h"
32 
33 namespace ros_broker{
34 
36  public:
37  ROSBroker();
38  void init(std::string name, const micros_swarm::PacketParser& parser);
39  void broadcast(const std::vector<uint8_t>& msg_data);
40  void receive();
41  private:
42  void callback(const GSDFPacket& ros_msg);
43  std::string name_;
48  };
49 };
50 #endif
void init(std::string name, const micros_swarm::PacketParser &parser)
Definition: ros_broker.cpp:37
micros_swarm::PacketParser parser_
Definition: ros_broker.h:44
std::string name_
Definition: ros_broker.h:43
ros::Subscriber packet_subscriber_
Definition: ros_broker.h:47
void broadcast(const std::vector< uint8_t > &msg_data)
Definition: ros_broker.cpp:43
ros::NodeHandle node_handle_
Definition: ros_broker.h:45
void callback(const GSDFPacket &ros_msg)
Definition: ros_broker.cpp:62
ros::Publisher packet_publisher_
Definition: ros_broker.h:46


ros_broker
Author(s):
autogenerated on Mon Jun 10 2019 14:02:28