NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
|
#include <generic_rapid_msg_ros_pub.h>
Public Member Functions | |
GenericRapidMsgRosPub (double ad2pub_delay=DEFAULT_ADVERTISE_TO_PUB_DELAY) | |
virtual | ~GenericRapidMsgRosPub () |
void | InitializeDDS (std::vector< std::string > const &connections, bool enable_advertisement_info_request) |
void | ConvertAdvertisementInfo (rapid::ext::astrobee::GenericCommsAdvertisementInfo const *data) |
void | ConvertContent (rapid::ext::astrobee::GenericCommsContent const *data, std::string const &connecting_robot) |
void | RequestAdvertisementInfo (std::string const &output_topic, std::string const &connecting_robot) |
Public Member Functions inherited from BridgePublisher | |
virtual | ~BridgePublisher () |
void | setVerbosity (unsigned int verbosity) |
Additional Inherited Members | |
Protected Member Functions inherited from BridgePublisher | |
BridgePublisher (double ad2pub_delay) | |
bool | advertiseTopic (const std::string &output_topic, const AdvertisementInfo &ad_info) |
bool | relayMessage (RelayTopicInfo &topic_info, const ContentInfo &content_info) |
void | drainThread () |
bool | relayContent (RelayTopicInfo &topic_info, const ContentInfo &content_info) |
void | drainWaitingQueue (RelayTopicInfo &topic_info) |
void | drainWaitingQueue (std::string const &output_topic) |
Protected Attributes inherited from BridgePublisher | |
unsigned int | m_verbose_ |
double | m_ad2pub_delay_ |
std::mutex | m_mutex_ |
std::shared_ptr< std::thread > | worker_thread_ |
std::map< std::string, RelayTopicInfo > | m_relay_topics_ |
std::priority_queue< std::pair< timepoint_t, std::string > > | m_drain_queue_ |
std::condition_variable | m_drain_cv_ |
unsigned int | m_n_relayed_ |
|
explicit |
|
virtual |
void ff::GenericRapidMsgRosPub::ConvertAdvertisementInfo | ( | rapid::ext::astrobee::GenericCommsAdvertisementInfo const * | data | ) |
void ff::GenericRapidMsgRosPub::ConvertContent | ( | rapid::ext::astrobee::GenericCommsContent const * | data, |
std::string const & | connecting_robot | ||
) |
void ff::GenericRapidMsgRosPub::InitializeDDS | ( | std::vector< std::string > const & | connections, |
bool | enable_advertisement_info_request | ||
) |
void ff::GenericRapidMsgRosPub::RequestAdvertisementInfo | ( | std::string const & | output_topic, |
std::string const & | connecting_robot | ||
) |