Skip to content

Commit

Permalink
Revert mistakenly commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasHaug committed Jun 21, 2023
1 parent d557b00 commit 65a979e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/dynamic_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 65a979e

Please sign in to comment.