GLIM
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
glim::GenericTopicSubscription Class Referenceabstract

Generic topic subscription that allows transparently subscribes to a topic through glim_rosnode and glim_rosbag. More...

#include <extension_module_ros.hpp>

Inheritance diagram for glim::GenericTopicSubscription:
Inheritance graph
[legend]

Public Types

using Ptr = std::shared_ptr< GenericTopicSubscription >
 
using Ptr = std::shared_ptr< GenericTopicSubscription >
 

Public Member Functions

 GenericTopicSubscription (const std::string &topic)
 Constructor.
 
virtual void create_subscriber (ros::NodeHandle &nh)=0
 Create a ROS subscriber.
 
virtual void insert_message_instance (const rosbag::MessageInstance &m)=0
 Parse a rosbag message instance and feed the msg to the callback.
 
 GenericTopicSubscription (const std::string &topic, const std::string &msg_type="")
 
virtual void create_subscriber (rclcpp::Node &node)=0
 
virtual void insert_message_instance (const rclcpp::SerializedMessage &serialized_msg, const std::string &msg_type="")=0
 

Public Attributes

const std::string topic
 Topic name.
 
const std::string msg_type
 

Detailed Description

Generic topic subscription that allows transparently subscribes to a topic through glim_rosnode and glim_rosbag.

Constructor & Destructor Documentation

◆ GenericTopicSubscription()

glim::GenericTopicSubscription::GenericTopicSubscription ( const std::string &  topic)
inline

Constructor.

Parameters
topicTopic name

Member Function Documentation

◆ create_subscriber()

virtual void glim::GenericTopicSubscription::create_subscriber ( ros::NodeHandle &  nh)
pure virtual

Create a ROS subscriber.

Parameters
nhNode handle

Implemented in glim::TopicSubscription< Msg >.

◆ insert_message_instance()

virtual void glim::GenericTopicSubscription::insert_message_instance ( const rosbag::MessageInstance &  m)
pure virtual

Parse a rosbag message instance and feed the msg to the callback.

Parameters
mMessage instance

Implemented in glim::TopicSubscription< Msg >.


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