Template Class InterProcessPollingSubscriber
Defined in File polling_subscriber.hpp
Inheritance Relationships
Base Type
public autoware_utils_rclcpp::polling_policy::Latest< MessageT >(Template Class Latest)
Class Documentation
-
template<typename MessageT, template<typename> class PollingPolicy = polling_policy::Latest>
class InterProcessPollingSubscriber : public autoware_utils_rclcpp::polling_policy::Latest<MessageT> Subscriber class that uses a specified polling policy.
- Template Parameters:
MessageT – The message type.
PollingPolicy – The polling policy to use.
Public Types
Public Functions
-
inline explicit InterProcessPollingSubscriber(rclcpp::Node *node, const std::string &topic_name, const rclcpp::QoS &qos = rclcpp::QoS{1})
Construct a new InterProcessPollingSubscriber object.
- Parameters:
node – The node to attach the subscriber to.
topic_name – The topic name to subscribe to.
qos – The QoS profile to use for the subscription.
Public Static Functions
-
static inline SharedPtr create_subscription(rclcpp::Node *node, const std::string &topic_name, const rclcpp::QoS &qos = rclcpp::QoS{1})
Create a subscription.
- Parameters:
node – The node to attach the subscriber to.
topic_name – The topic name to subscribe to.
qos – The QoS profile to use for the subscription.
- Returns:
SharedPtr The created subscription.