|
GLIM
|
Specialized topic subscription for type erasure. More...
#include <extension_module_ros.hpp>


Public Member Functions | |
| template<typename Callback > | |
| TopicSubscription (const std::string &topic, const Callback &callback) | |
| topic Topic name | |
| virtual void | create_subscriber (ros::NodeHandle &nh) override |
| Create a ROS subscriber. | |
| virtual void | insert_message_instance (const rosbag::MessageInstance &m) override |
| Parse a rosbag message instance and feed the msg to the callback. | |
| template<typename Callback > | |
| TopicSubscription (const std::string &topic, const Callback &callback) | |
| template<typename Callback > | |
| TopicSubscription (const std::string &topic, const std::string &msg_type, const Callback &callback) | |
| virtual void | create_subscriber (rclcpp::Node &node) override |
| virtual void | insert_message_instance (const rclcpp::SerializedMessage &serialized_msg, const std::string &msg_type="") override |
Public Member Functions inherited from glim::GenericTopicSubscription | |
| GenericTopicSubscription (const std::string &topic) | |
| Constructor. | |
| GenericTopicSubscription (const std::string &topic, const std::string &msg_type="") | |
Public Attributes | |
| const std::function< void(const std::shared_ptr< const Msg > &)> | callback |
| ros::Subscriber | sub |
| rclcpp::Serialization< Msg > | serialization |
| std::shared_ptr< rclcpp::Subscription< Msg > > | sub |
Public Attributes inherited from glim::GenericTopicSubscription | |
| const std::string | topic |
| Topic name. | |
| const std::string | msg_type |
Additional Inherited Members | |
Public Types inherited from glim::GenericTopicSubscription | |
| using | Ptr = std::shared_ptr< GenericTopicSubscription > |
| using | Ptr = std::shared_ptr< GenericTopicSubscription > |
Specialized topic subscription for type erasure.
|
inline |
topic Topic name
callback Message callback
|
inlineoverridevirtual |
Implements glim::GenericTopicSubscription.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements glim::GenericTopicSubscription.
|
inlineoverridevirtual |
Parse a rosbag message instance and feed the msg to the callback.
| m | Message instance |
Implements glim::GenericTopicSubscription.