diff --git a/src/dynamic_bridge.cpp b/src/dynamic_bridge.cpp index b87d1bac..e4c11ca0 100644 --- a/src/dynamic_bridge.cpp +++ b/src/dynamic_bridge.cpp @@ -230,14 +230,14 @@ void update_bridge( bridge.ros1_type_name, topic_name, 10, bridge.ros2_type_name, topic_name, ros2_publisher_qos); } catch (std::runtime_error & e) { - // fprintf( - // stderr, - // "failed to create 1to2 bridge for topic '%s' " - // "with ROS 1 type '%s' and ROS 2 type '%s': %s\n", - // topic_name.c_str(), bridge.ros1_type_name.c_str(), bridge.ros2_type_name.c_str(), e.what()); - // if (std::string(e.what()).find("No template specialization") != std::string::npos) { - // fprintf(stderr, "check the list of supported pairs with the `--print-pairs` option\n"); - // } + fprintf( + stderr, + "failed to create 1to2 bridge for topic '%s' " + "with ROS 1 type '%s' and ROS 2 type '%s': %s\n", + topic_name.c_str(), bridge.ros1_type_name.c_str(), bridge.ros2_type_name.c_str(), e.what()); + if (std::string(e.what()).find("No template specialization") != std::string::npos) { + fprintf(stderr, "check the list of supported pairs with the `--print-pairs` option\n"); + } continue; } @@ -296,14 +296,14 @@ void update_bridge( bridge.ros2_type_name, topic_name, 10, bridge.ros1_type_name, topic_name, 10); } catch (std::runtime_error & e) { - // fprintf( - // stderr, - // "failed to create 2to1 bridge for topic '%s' " - // "with ROS 2 type '%s' and ROS 1 type '%s': %s\n", - // topic_name.c_str(), bridge.ros2_type_name.c_str(), bridge.ros1_type_name.c_str(), e.what()); - // if (std::string(e.what()).find("No template specialization") != std::string::npos) { - // fprintf(stderr, "check the list of supported pairs with the `--print-pairs` option\n"); - // } + fprintf( + stderr, + "failed to create 2to1 bridge for topic '%s' " + "with ROS 2 type '%s' and ROS 1 type '%s': %s\n", + topic_name.c_str(), bridge.ros2_type_name.c_str(), bridge.ros1_type_name.c_str(), e.what()); + if (std::string(e.what()).find("No template specialization") != std::string::npos) { + fprintf(stderr, "check the list of supported pairs with the `--print-pairs` option\n"); + } continue; }