Go to the documentation of this file.
12 #ifndef RTCTK_COMPONENTFRAMEWORK_DATAPATH_DDSSUB_HPP_
13 #define RTCTK_COMPONENTFRAMEWORK_DATAPATH_DDSSUB_HPP_
30 DdsReaderParams(
const std::string &tn, DataReaderListener *l,
const std::string &mc)
49 Subscriber *m_subscriber;
51 std::vector<DataReader *> m_data_readers;
63 DdsSub(
const std::string &qos_file,
86 DataReader *
CreateDataReader(Topic *topic, DataReaderListener *listener =
nullptr, std::string multicast_address=
"");
134 return m_data_readers;
141 #endif // RTCTK_COMPONENTFRAMEWORK_DATAPATH_DDSSUB_HPP_
std::string multicast_address
Definition: ddsSub.hpp:27
static const std::string DEFAULT_QOS_PROFILE
default profile name for different DDS QoSs
Definition: dds.hpp:147
void CreateDataReaders()
Creates DDS Data Reader for all DDS topics.
Definition: ddsSub.cpp:249
DdsSub(const std::string &qos_file, const std::string &qos_profile=DEFAULT_QOS_PROFILE, DomainId_t domain_id=DEFAULT_DOMAIN_ID)
Definition: ddsSub.cpp:28
void CreateManyDataReaders(std::vector< DdsReaderParams > const &)
create DDS topics and DDS readers for the given list (vector) of topic names and rtctk::componentFram...
Definition: ddsSub.cpp:214
DataReaderListener * listener
Definition: ddsSub.hpp:26
Definition: commandReplier.cpp:20
Structure that keeps together topic name and DDS Data Writer listener.
Definition: ddsSub.hpp:24
DdsReaderParams(const std::string &tn, DataReaderListener *l)
Definition: ddsSub.hpp:34
virtual ~DdsSub()
Definition: ddsSub.cpp:34
std::vector< DataReader * > & GetDataReaders()
returns vector of all DDS Data writers
Definition: ddsSub.hpp:133
static const DomainId_t DEFAULT_DOMAIN_ID
default Domain Id for different DDS
Definition: dds.hpp:153
All functionality needed to create DDS entities for DDS data subscribing is concentrated in this clas...
Definition: ddsSub.hpp:48
void EnableAllDataReaders()
Definition: ddsSub.cpp:178
void DumpDDSstatistics()
Dumps / logs varios DDS statistic like NACks, ACKs, ...
Definition: ddsSub.cpp:262
std::string topic_name
Definition: ddsSub.hpp:25
void DestroySubscriber()
Destroys DDS subscriber.
Definition: ddsSub.cpp:89
void CreateSubscriber()
Creates DDS subscriber.
Definition: ddsSub.cpp:43
DdsReaderParams(const std::string &tn, DataReaderListener *l, const std::string &mc)
Definition: ddsSub.hpp:30
void DestroyDataReader(DataReader *dr, bool to_be_removed=true)
Destroys DDS data reader.
Definition: ddsSub.cpp:193
DataReader * CreateDataReader(Topic *topic, DataReaderListener *listener=nullptr, std::string multicast_address="")
Creates DDS data reader for particular topic for topic of type: rtctk::AgnosticTopic.
Definition: ddsSub.cpp:107
DdsReaderParams(const std::string &tn)
Definition: ddsSub.hpp:38
Declares common DDS class.
void DestroyAllDataReaders()
Destroys DDS Data Reader for all DDS topics.
Definition: ddsSub.cpp:238
Common functionallty needed to create DDS entities like participant and topic that can be later used ...
Definition: dds.hpp:31