Class MarkerFactory
Defined in File marker_factory.hpp
Class Documentation
-
class MarkerFactory
Factory for markers.
Factory class for markers. The marker type is choosen according the the type of the marker message. Markers come in as visualization_msgs::msg::Marker messages. See the Marker message for more information.
Public Functions
-
void initialize(MarkerCommon *owner, rviz_common::DisplayContext *context, Ogre::SceneNode *parent_node)
Initialization of the marker factory.
Initializes the marker factory. Needs to be called before the createMarkerForType method is called.
- Parameters:
owner – Owning display for all created markers.
context – Display context.
parent_node – Ogre parent scene node.
-
std::shared_ptr<MarkerBase> createMarkerForType(visualization_msgs::msg::Marker::_type_type marker_type)
Creates a new marker.
Generates a marker in form of a Ogre scene node for a marker type.
- Parameters:
marker_type – marker type of the marker message
- Returns:
shared pointer of the generated marker
-
void initialize(MarkerCommon *owner, rviz_common::DisplayContext *context, Ogre::SceneNode *parent_node)