NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
ff::GenericRapidSub Class Reference

base class for rapid subscriber to ros publisher More...

#include <generic_rapid_sub.h>

Inheritance diagram for ff::GenericRapidSub:
Inheritance graph

Protected Member Functions

 GenericRapidSub (const std::string &entity_name, const std::string &subscribe_topic, const std::string &subscriber_partition)
 
 ~GenericRapidSub ()
 
virtual void StartThread ()
 

Protected Attributes

std::string subscribe_topic_
 
std::string subscriber_partition_
 
std::atomic< bool > alive_
 
std::thread thread_
 
kn::DdsEventLoop dds_event_loop_
 

Detailed Description

base class for rapid subscriber to ros publisher

base class for rapid subscriber to ros publisher. A kn::DdsEventLoop is run within its own thread of execution. Child classes must connect requested message and callback to m_ddsEventLoop and call startThread()

Constructor & Destructor Documentation

◆ GenericRapidSub()

ff::GenericRapidSub::GenericRapidSub ( const std::string &  entity_name,
const std::string &  subscribe_topic,
const std::string &  subscriber_partition 
)
protected

◆ ~GenericRapidSub()

ff::GenericRapidSub::~GenericRapidSub ( )
protected

Member Function Documentation

◆ StartThread()

void ff::GenericRapidSub::StartThread ( )
protectedvirtual

Will start thread exection by calling threadExec()

Member Data Documentation

◆ alive_

std::atomic<bool> ff::GenericRapidSub::alive_
protected

◆ dds_event_loop_

kn::DdsEventLoop ff::GenericRapidSub::dds_event_loop_
protected

◆ subscribe_topic_

std::string ff::GenericRapidSub::subscribe_topic_
protected

◆ subscriber_partition_

std::string ff::GenericRapidSub::subscriber_partition_
protected

◆ thread_

std::thread ff::GenericRapidSub::thread_
protected

The documentation for this class was generated from the following files: