AWViz-ROS
Loading...
Searching...
No Matches
awviz_common::ITopicScanner Class Referenceabstract

Simple topic scanning interface for ROS nodes. More...

#include <topic_scanner.hpp>

Inheritance diagram for awviz_common::ITopicScanner:
awviz_common::TopicScanner

Public Types

using TopicMap = std::map< std::string, std::vector< std::string > >
 

Public Member Functions

 ITopicScanner ()=default
 Construct a new topic scanner interface.
 
virtual ~ITopicScanner ()=default
 
virtual TopicMap scan () const =0
 Scan current topics and return their names and types.
 

Detailed Description

Simple topic scanning interface for ROS nodes.

This class provides an abstraction around topic discovery so it can be separated from visualization logic.

Member Typedef Documentation

◆ TopicMap

using awviz_common::ITopicScanner::TopicMap = std::map<std::string, std::vector<std::string> >

Constructor & Destructor Documentation

◆ ITopicScanner()

awviz_common::ITopicScanner::ITopicScanner ( )
default

Construct a new topic scanner interface.

◆ ~ITopicScanner()

virtual awviz_common::ITopicScanner::~ITopicScanner ( )
virtualdefault

Member Function Documentation

◆ scan()

virtual TopicMap awviz_common::ITopicScanner::scan ( ) const
pure virtual

Scan current topics and return their names and types.

Returns
Map of topic name to a list of types.

Implemented in awviz_common::TopicScanner.


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