udp_bc_broker.h
Go to the documentation of this file.
1 
23 #ifndef UDP_BC_BROKER_H_
24 #define UDP_BC_BROKER_H_
25 
26 #include <iostream>
27 #include <ros/ros.h>
29 
31 #include "ros_broker/GSDFPacket.h"
32 
33 #include "micros_swarm/singleton.h"
35 
36 #include "udp_bc_broker/send.h"
37 #include "udp_bc_broker/recv.h"
38 
39 namespace udp_bc_broker{
40 
42  public:
43  UDPBCBroker();
44  void init(std::string name, const micros_swarm::PacketParser& parser);
45  void broadcast(const std::vector<uint8_t>& msg_data);
46  void receive();
47  private:
48  void callback(const std::vector<uint8_t>& msg_vec);
49  std::string name_;
54  };
55 };
56 #endif
boost::shared_ptr< UdpRecver > recver_
Definition: udp_bc_broker.h:52
void init(std::string name, const micros_swarm::PacketParser &parser)
void broadcast(const std::vector< uint8_t > &msg_data)
boost::shared_ptr< micros_swarm::RuntimeHandle > rth_
Definition: udp_bc_broker.h:53
boost::shared_ptr< UdpSender > sender_
Definition: udp_bc_broker.h:51
void callback(const std::vector< uint8_t > &msg_vec)
micros_swarm::PacketParser parser_
Definition: udp_bc_broker.h:50


udp_bc_broker
Author(s):
autogenerated on Mon Jun 10 2019 14:02:40