Skip to content

TakeSubscription#

agnocast::TakeSubscription<MessageT>#

Extends: agnocast::SubscriptionBase

Polling-based subscription that retrieves messages on demand via take().


take()#

cpp agnocast::ipc_shared_ptr<MessageT> TakeSubscription::take(bool allow_same_message)

Retrieve the latest message from the topic.

Template Parameter Description
MessageT ROS message type.
Parameter Default
allow_same_message false
Returns Shared pointer to the message, or empty if unavailable.