AWViz-ROS
Loading...
Searching...
No Matches
awviz_common::DisplaySpawner Class Referencefinal

Concrete spawner that uses DisplayFactory and standard topic properties. More...

#include <display_spawner.hpp>

Inheritance diagram for awviz_common::DisplaySpawner:
awviz_common::IDisplaySpawner

Public Member Functions

 DisplaySpawner (rclcpp::Node::SharedPtr node, std::shared_ptr< rerun::RecordingStream > stream, std::shared_ptr< std::unordered_map< std::string, std::string > > entity_roots)
 
std::shared_ptr< Displayspawn (const std::string &topic, const std::string &topic_type) override
 Spawn a display instance for the given topic and message type.
 
std::optional< std::string > resolve_lookup_name (const std::string &topic_type) const override
 Resolve a plugin lookup name for the given message type.
 
- Public Member Functions inherited from awviz_common::IDisplaySpawner
virtual ~IDisplaySpawner ()=default
 
virtual std::shared_ptr< Displayspawn (const std::string &topic, const std::string &topic_type)=0
 Spawn a display instance for the given topic and message type.
 
virtual std::optional< std::string > resolve_lookup_name (const std::string &topic_type) const =0
 Resolve a plugin lookup name for the given message type.
 

Detailed Description

Concrete spawner that uses DisplayFactory and standard topic properties.

Constructor & Destructor Documentation

◆ DisplaySpawner()

awviz_common::DisplaySpawner::DisplaySpawner ( rclcpp::Node::SharedPtr  node,
std::shared_ptr< rerun::RecordingStream >  stream,
std::shared_ptr< std::unordered_map< std::string, std::string > >  entity_roots 
)

Member Function Documentation

◆ resolve_lookup_name()

std::optional< std::string > awviz_common::DisplaySpawner::resolve_lookup_name ( const std::string &  topic_type) const
overridevirtual

Resolve a plugin lookup name for the given message type.

Parameters
topic_typeROS message type name.
Returns
Lookup name if a plugin is registered, otherwise std::nullopt.

Implements awviz_common::IDisplaySpawner.

◆ spawn()

std::shared_ptr< Display > awviz_common::DisplaySpawner::spawn ( const std::string &  topic,
const std::string &  topic_type 
)
overridevirtual

Spawn a display instance for the given topic and message type.

Parameters
topicTopic name.
topic_typeROS message type name.
Returns
A display instance if a plugin is available, otherwise nullptr.

Implements awviz_common::IDisplaySpawner.


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