2222
2323#include <rmw/rmw.h>
2424#include <rmw/allocators.h>
25- #include <rmw/error_handling.h>
2625
2726#include "./rmw_microros_internal/utils.h"
27+ #include "./rmw_microros_internal/error_handling_internal.h"
2828
2929rmw_client_t *
3030rmw_create_client (
@@ -35,20 +35,20 @@ rmw_create_client(
3535{
3636 rmw_client_t * rmw_client = NULL ;
3737 if (!node ) {
38- RMW_SET_ERROR_MSG ("node handle is null" );
38+ RMW_UROS_TRACE_MESSAGE ("node handle is null" )
3939 } else if (!type_support ) {
40- RMW_SET_ERROR_MSG ("type support is null" );
40+ RMW_UROS_TRACE_MESSAGE ("type support is null" )
4141 } else if (!is_uxrce_rmw_identifier_valid (node -> implementation_identifier )) {
42- RMW_SET_ERROR_MSG ("node handle not from this implementation" );
42+ RMW_UROS_TRACE_MESSAGE ("node handle not from this implementation" )
4343 } else if (!service_name || strlen (service_name ) == 0 ) {
44- RMW_SET_ERROR_MSG ("service name is null or empty string" );
44+ RMW_UROS_TRACE_MESSAGE ("service name is null or empty string" )
4545 } else if (!qos_policies ) {
46- RMW_SET_ERROR_MSG ("qos_profile is null" );
46+ RMW_UROS_TRACE_MESSAGE ("qos_profile is null" )
4747 } else {
4848 rmw_uxrce_node_t * custom_node = (rmw_uxrce_node_t * )node -> data ;
4949 rmw_uxrce_mempool_item_t * memory_node = get_memory (& client_memory );
5050 if (!memory_node ) {
51- RMW_SET_ERROR_MSG ("Not available memory node" );
51+ RMW_UROS_TRACE_MESSAGE ("Not available memory node" )
5252 return NULL ;
5353 }
5454 rmw_uxrce_client_t * custom_client = (rmw_uxrce_client_t * )memory_node -> data ;
@@ -58,7 +58,7 @@ rmw_create_client(
5858 rmw_client -> implementation_identifier = rmw_get_implementation_identifier ();
5959 rmw_client -> service_name = custom_client -> service_name ;
6060 if ((strlen (service_name ) + 1 ) > sizeof (custom_client -> service_name )) {
61- RMW_SET_ERROR_MSG ("failed to allocate string" );
61+ RMW_UROS_TRACE_MESSAGE ("failed to allocate string" )
6262 goto fail ;
6363 }
6464
@@ -80,15 +80,15 @@ rmw_create_client(
8080 }
8181#endif /* ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_CPP__IDENTIFIER_VALUE */
8282 if (NULL == type_support_xrce ) {
83- RMW_SET_ERROR_MSG ("Undefined type support" );
83+ RMW_UROS_TRACE_MESSAGE ("Undefined type support" )
8484 goto fail ;
8585 }
8686
8787 custom_client -> type_support_callbacks =
8888 (const service_type_support_callbacks_t * )type_support_xrce -> data ;
8989
9090 if (custom_client -> type_support_callbacks == NULL ) {
91- RMW_SET_ERROR_MSG ("type support data is NULL" );
91+ RMW_UROS_TRACE_MESSAGE ("type support data is NULL" )
9292 goto fail ;
9393 }
9494
@@ -109,7 +109,7 @@ rmw_create_client(
109109 custom_client -> type_support_callbacks , qos_policies , rmw_uxrce_entity_naming_buffer ,
110110 sizeof (rmw_uxrce_entity_naming_buffer )))
111111 {
112- RMW_SET_ERROR_MSG ("failed to generate xml request for client creation" );
112+ RMW_UROS_TRACE_MESSAGE ("failed to generate xml request for client creation" )
113113 goto fail ;
114114 }
115115 client_req = uxr_buffer_create_requester_xml (
@@ -190,22 +190,22 @@ rmw_destroy_client(
190190{
191191 rmw_ret_t result_ret = RMW_RET_OK ;
192192 if (!node ) {
193- RMW_SET_ERROR_MSG ("node handle is null" );
193+ RMW_UROS_TRACE_MESSAGE ("node handle is null" )
194194 result_ret = RMW_RET_ERROR ;
195195 } else if (!is_uxrce_rmw_identifier_valid (node -> implementation_identifier )) {
196- RMW_SET_ERROR_MSG ("node handle not from this implementation" );
196+ RMW_UROS_TRACE_MESSAGE ("node handle not from this implementation" )
197197 result_ret = RMW_RET_ERROR ;
198198 } else if (!node -> data ) {
199- RMW_SET_ERROR_MSG ("node imp is null" );
199+ RMW_UROS_TRACE_MESSAGE ("node imp is null" )
200200 result_ret = RMW_RET_ERROR ;
201201 } else if (!client ) {
202- RMW_SET_ERROR_MSG ("client handle is null" );
202+ RMW_UROS_TRACE_MESSAGE ("client handle is null" )
203203 result_ret = RMW_RET_ERROR ;
204204 } else if (!is_uxrce_rmw_identifier_valid (client -> implementation_identifier )) {
205- RMW_SET_ERROR_MSG ("client handle not from this implementation" );
205+ RMW_UROS_TRACE_MESSAGE ("client handle not from this implementation" )
206206 result_ret = RMW_RET_ERROR ;
207207 } else if (!client -> data ) {
208- RMW_SET_ERROR_MSG ("client imp is null" );
208+ RMW_UROS_TRACE_MESSAGE ("client imp is null" )
209209 result_ret = RMW_RET_ERROR ;
210210 } else {
211211 rmw_uxrce_node_t * custom_node = (rmw_uxrce_node_t * )node -> data ;
0 commit comments