Class Subscriber
Defined in File subscriber.hpp
Nested Relationships
Nested Types
Class Documentation
-
class Subscriber
Subscriber concept interface.
Note
this defines an private concept struct, which each instance has to implement
Note
a type erasure pattern in implemented here to avoid strict inheritance, thus each possible subscriber instance has to implement the virtual functions mentioned in the concept
Public Functions
-
inline bool isInitialized() const
checks if the subscriber is correctly initialized @
- Returns:
bool value indicating true for success
-
inline void reset(rclcpp::Node *node)
initializes/resets the subscriber into ROS with a given Node, this will be called at first for initialization
- Parameters:
node – rclcpp::Node pointer object used to create the subscriber
-
inline std::string name() const
getting the descriptive name for this subscriber instance
- Returns:
string with the name
-
inline std::string topic() const
getting the topic to subscriber on
- Returns:
string indicating the topic
Friends
-
inline friend bool operator==(const Subscriber &lhs, const Subscriber &rhs)
-
inline bool isInitialized() const