Function rcl_subscription_can_loan_messages

Function Documentation

bool rcl_subscription_can_loan_messages(const rcl_subscription_t *subscription)

Check if subscription instance can loan messages.

Depending on the middleware and the message type, this will return true if the middleware can allocate a ROS message instance.

Parameters:

subscription[in] The subscription instance to check for the ability to loan messages

Returns:

true if the subscription instance can loan messages, false otherwise.