@@ -75,9 +75,15 @@ void on_topic(
7575 rmw_uxrce_mempool_item_t * memory_node = rmw_uxrce_get_static_input_buffer_for_entity (
7676 custom_subscription , custom_subscription -> qos );
7777 if (!memory_node ) {
78- RMW_SET_ERROR_MSG ("Not available static buffer memory node" );
7978 UXR_UNLOCK (& static_buffer_memory .mutex );
80- RMW_UROS_TRACE_ERROR (RMW_UROS_ERROR_ON_SUBSCRIPTION , RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION , .node = custom_subscription -> owner_node -> node_name , .namespace = custom_subscription -> owner_node -> node_namespace , .topic_name = custom_subscription -> topic_name , .ucdr = ub , .size = length );
79+ RMW_SET_ERROR_MSG ("Not available static buffer memory node" );
80+ RMW_UROS_TRACE_ERROR (
81+ RMW_UROS_ERROR_ON_SUBSCRIPTION , RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION ,
82+ .node = custom_subscription -> owner_node -> node_name ,
83+ .namespace = custom_subscription -> owner_node -> node_namespace ,
84+ .topic_name = custom_subscription -> topic_name , .ucdr = ub ,
85+ .size = length ,
86+ .type_support .message_callbacks = custom_subscription -> type_support_callbacks );
8187 return ;
8288 }
8389
@@ -128,9 +134,15 @@ void on_request(
128134 rmw_uxrce_mempool_item_t * memory_node = rmw_uxrce_get_static_input_buffer_for_entity (
129135 custom_service , custom_service -> qos );
130136 if (!memory_node ) {
131- RMW_SET_ERROR_MSG ("Not available static buffer memory node" );
132137 UXR_UNLOCK (& static_buffer_memory .mutex );
133- // RMW_UROS_TRACE_ERROR(RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION, .node = custom_service->owner_node->node_name, .namespace = custom_service->owner_node->node_namespace, .topic = custom_subscription->topic_name, .ucdr = ub, .size = length);
138+ RMW_SET_ERROR_MSG ("Not available static buffer memory node" );
139+ RMW_UROS_TRACE_ERROR (
140+ RMW_UROS_ERROR_ON_SERVICE , RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION ,
141+ .node = custom_service -> owner_node -> node_name ,
142+ .namespace = custom_service -> owner_node -> node_namespace ,
143+ .topic_name = custom_service -> service_name , .ucdr = ub ,
144+ .size = length ,
145+ .type_support .service_callbacks = custom_service -> type_support_callbacks );
134146 return ;
135147 }
136148
@@ -183,9 +195,15 @@ void on_reply(
183195 rmw_uxrce_mempool_item_t * memory_node = rmw_uxrce_get_static_input_buffer_for_entity (
184196 custom_client , custom_client -> qos );
185197 if (!memory_node ) {
186- RMW_SET_ERROR_MSG ("Not available static buffer memory node" );
187198 UXR_UNLOCK (& static_buffer_memory .mutex );
188- // RMW_UROS_TRACE_ERROR(RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION, ub, length);
199+ RMW_SET_ERROR_MSG ("Not available static buffer memory node" );
200+ RMW_UROS_TRACE_ERROR (
201+ RMW_UROS_ERROR_ON_CLIENT , RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION ,
202+ .node = custom_client -> owner_node -> node_name ,
203+ .namespace = custom_client -> owner_node -> node_namespace ,
204+ .topic_name = custom_client -> service_name , .ucdr = ub ,
205+ .size = length ,
206+ .type_support .service_callbacks = custom_service -> type_support_callbacks );
189207 return ;
190208 }
191209
0 commit comments