Main Page
Namespaces
Classes
Files
File List
File Members
include
opensplice_dds_broker
opensplice_dds_broker.h
Go to the documentation of this file.
1
23
#ifndef OPENSPLICE_DDS_BROKER_H_
24
#define OPENSPLICE_DDS_BROKER_H_
25
26
#include <iostream>
27
#include <
pluginlib/class_list_macros.h
>
28
#include <
class_loader/multi_library_class_loader.h
>
29
30
#include "
GSDFPacket.h
"
31
#include "
check_status.h
"
32
#include "
publisher.h
"
33
#include "
subscriber.h
"
34
35
#include "
micros_swarm/comm_interface.h
"
36
37
namespace
opensplice_dds_broker
{
38
39
class
OpenSpliceDDSBroker
:
public
micros_swarm::CommInterface
{
40
public
:
41
OpenSpliceDDSBroker
();
42
void
init
(std::string name,
const
micros_swarm::PacketParser
& parser);
43
void
broadcast
(
const
std::vector<uint8_t>& msg_data);
44
void
receive
();
45
private
:
46
void
callback
(
const
opensplice_dds_broker::GSDFPacket
& dds_msg);
47
std::string
name_
;
48
micros_swarm::PacketParser
parser_
;
49
boost::shared_ptr<opensplice_dds_broker::Publisher>
packet_publisher_
;
50
boost::shared_ptr<opensplice_dds_broker::Subscriber>
packet_subscriber_
;
51
};
52
};
53
#endif
opensplice_dds_broker::OpenSpliceDDSBroker
Definition:
opensplice_dds_broker.h:39
subscriber.h
opensplice_dds_broker::OpenSpliceDDSBroker::name_
std::string name_
Definition:
opensplice_dds_broker.h:47
opensplice_dds_broker::OpenSpliceDDSBroker::broadcast
void broadcast(const std::vector< uint8_t > &msg_data)
Definition:
opensplice_dds_broker.cpp:42
opensplice_dds_broker::OpenSpliceDDSBroker::callback
void callback(const opensplice_dds_broker::GSDFPacket &dds_msg)
Definition:
opensplice_dds_broker.cpp:52
multi_library_class_loader.h
check_status.h
opensplice_dds_broker::GSDFPacket
Definition:
GSDFPacket.h:26
boost::shared_ptr
opensplice_dds_broker::OpenSpliceDDSBroker::packet_publisher_
boost::shared_ptr< opensplice_dds_broker::Publisher > packet_publisher_
Definition:
opensplice_dds_broker.h:49
opensplice_dds_broker::OpenSpliceDDSBroker::packet_subscriber_
boost::shared_ptr< opensplice_dds_broker::Subscriber > packet_subscriber_
Definition:
opensplice_dds_broker.h:50
opensplice_dds_broker
Definition:
GSDFPacket.h:18
opensplice_dds_broker::OpenSpliceDDSBroker::init
void init(std::string name, const micros_swarm::PacketParser &parser)
Definition:
opensplice_dds_broker.cpp:36
class_list_macros.h
micros_swarm::PacketParser
opensplice_dds_broker::OpenSpliceDDSBroker::receive
void receive()
Definition:
opensplice_dds_broker.cpp:65
comm_interface.h
publisher.h
opensplice_dds_broker::OpenSpliceDDSBroker::OpenSpliceDDSBroker
OpenSpliceDDSBroker()
Definition:
opensplice_dds_broker.cpp:30
micros_swarm::CommInterface
GSDFPacket.h
opensplice_dds_broker::OpenSpliceDDSBroker::parser_
micros_swarm::PacketParser parser_
Definition:
opensplice_dds_broker.h:48
opensplice_dds_broker
Author(s):
autogenerated on Mon Jun 10 2019 14:02:23