RMW desert 1.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
TopicsConfig Class Reference

Static Public Member Functions

static void load_configuration ()
 Initialize the configuration.
 
static uint8_t get_topic_identifier (std::string name)
 Get topic's identifier from configuration.
 
static std::string get_identifier_topic (uint8_t identifier)
 Get identifier's topic from configuration.
 

Member Function Documentation

◆ get_identifier_topic()

std::string TopicsConfig::get_identifier_topic ( uint8_t  identifier)
static

Get identifier's topic from configuration.

This function returns the topic associated to an identifier if it exists, otherwise returns an empty string.

Returns
The identifier topic

◆ get_topic_identifier()

uint8_t TopicsConfig::get_topic_identifier ( std::string  name)
static

Get topic's identifier from configuration.

This function returns the identifier associated to a topic if it exists, otherwise returns zero.

Returns
The topic identifier

◆ load_configuration()

void TopicsConfig::load_configuration ( )
static

Initialize the configuration.

This function reads the configuration file from ./ros_allowed_topics.conf. If not present, a warning will be displayed.


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