Template Class InterProcessPollingSubscriber

Inheritance Relationships

Base Type

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

using SharedPtr = std::shared_ptr<InterProcessPollingSubscriber<MessageT, PollingPolicy>>

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.

inline rclcpp::Subscription<MessageT>::SharedPtr subscriber()

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.