Template Class Subscriber

Inheritance Relationships

Base Types

Class Documentation

template<typename T>
class Subscriber : public soar_ros::Input<T>, public soar_ros::Interface

Public Functions

inline Subscriber(sml::Agent *agent, rclcpp::Node::SharedPtr node, const std::string &topic)
inline ~Subscriber()
inline void callback(const T &msg)
inline virtual std::string getTopic() override

Get the topic of the subscriber.

Returns:

inline virtual sml::Agent *getAgent() override

Get the agent of the current interface.

Returns:

Protected Attributes

rclcpp::Subscription<T>::SharedPtr sub
std::string m_topic
rclcpp::Node::SharedPtr m_node
sml::Agent *m_pAgent