|
14 | 14 |
|
15 | 15 | #include <rmw_microros_internal/callbacks.h> |
16 | 16 | #include <rmw_microros_internal/memory_error_handling_internal.h> |
17 | | -#include <rmw/error_handling.h> |
18 | 17 |
|
19 | 18 | void on_status( |
20 | 19 | struct uxrSession * session, |
@@ -76,9 +75,9 @@ void on_topic( |
76 | 75 | custom_subscription, custom_subscription->qos); |
77 | 76 | if (!memory_node) { |
78 | 77 | UXR_UNLOCK(&static_buffer_memory.mutex); |
79 | | - RMW_SET_ERROR_MSG("Not available static buffer memory node"); |
80 | 78 | RMW_UROS_TRACE_ERROR( |
81 | 79 | RMW_UROS_ERROR_ON_SUBSCRIPTION, RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION, |
| 80 | + "Not available static buffer memory node in on_topic callback", |
82 | 81 | .node = custom_subscription->owner_node->node_name, |
83 | 82 | .namespace = custom_subscription->owner_node->node_namespace, |
84 | 83 | .topic_name = custom_subscription->topic_name, .ucdr = ub, |
@@ -135,9 +134,9 @@ void on_request( |
135 | 134 | custom_service, custom_service->qos); |
136 | 135 | if (!memory_node) { |
137 | 136 | UXR_UNLOCK(&static_buffer_memory.mutex); |
138 | | - RMW_SET_ERROR_MSG("Not available static buffer memory node"); |
139 | 137 | RMW_UROS_TRACE_ERROR( |
140 | 138 | RMW_UROS_ERROR_ON_SERVICE, RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION, |
| 139 | + "Not available static buffer memory node in on_request callback", |
141 | 140 | .node = custom_service->owner_node->node_name, |
142 | 141 | .namespace = custom_service->owner_node->node_namespace, |
143 | 142 | .topic_name = custom_service->service_name, .ucdr = ub, |
@@ -196,14 +195,14 @@ void on_reply( |
196 | 195 | custom_client, custom_client->qos); |
197 | 196 | if (!memory_node) { |
198 | 197 | UXR_UNLOCK(&static_buffer_memory.mutex); |
199 | | - RMW_SET_ERROR_MSG("Not available static buffer memory node"); |
200 | 198 | RMW_UROS_TRACE_ERROR( |
201 | 199 | RMW_UROS_ERROR_ON_CLIENT, RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION, |
| 200 | + "Not available static buffer memory node in on_reply callback", |
202 | 201 | .node = custom_client->owner_node->node_name, |
203 | 202 | .namespace = custom_client->owner_node->node_namespace, |
204 | 203 | .topic_name = custom_client->service_name, .ucdr = ub, |
205 | 204 | .size = length, |
206 | | - .type_support.service_callbacks = custom_service->type_support_callbacks); |
| 205 | + .type_support.service_callbacks = custom_client->type_support_callbacks); |
207 | 206 | return; |
208 | 207 | } |
209 | 208 |
|
|
0 commit comments