@@ -40,20 +40,19 @@ class LoanedMessage
40
40
* The constructor of this class allocates memory for a given message type
41
41
* and associates this with a given publisher.
42
42
*
43
- * Given the publisher instance, a case differentiation is being performaned
44
- * which decides whether the underlying middleware is able to allocate the appropriate
45
- * memory for this message type or not.
46
- * In the case that the middleware can not loan messages, the passed in allocator instance
47
- * is being used to allocate the message within the scope of this class.
48
- * Otherwise, the allocator is being ignored and the allocation is solely performaned
43
+ * The underlying middleware is queried to determine whether it is able to allocate the
44
+ * appropriate memory for this message type or not.
45
+ * In the case that the middleware cannot loan messages, the passed in allocator instance
46
+ * is used to allocate the message within the scope of this class.
47
+ * Otherwise, the allocator is ignored and the allocation is solely performed
49
48
* in the underlying middleware with its appropriate allocation strategy.
50
49
* The need for this arises as the user code can be written explicitly targeting a middleware
51
50
* capable of loaning messages.
52
51
* However, this user code is ought to be usable even when dynamically linked against
53
52
* a middleware which doesn't support message loaning in which case the allocator will be used.
54
53
*
55
54
* \param[in] pub rclcpp::Publisher instance to which the memory belongs
56
- * \param[in] allocator Allocator instance in case middleware can not allocate messages
55
+ * \param[in] allocator Allocator instance in case middleware cannot allocate messages
57
56
* \throws anything rclcpp::exceptions::throw_from_rcl_error can throw.
58
57
*/
59
58
LoanedMessage (
0 commit comments