Class TopicsConfig

Class Documentation

class TopicsConfig

Public Static Functions

static void load_configuration()

Initialize the configuration.

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

static uint8_t get_topic_identifier(std::string name)

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

static std::string get_identifier_topic(uint8_t identifier)

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