From e93c35da79e4261f1d03880c3a051c1895847f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Wed, 13 Sep 2023 14:34:02 +0200 Subject: [PATCH] Fix double wait in ros_gz_bridge (#347) (#449) Signed-off-by: ymd-stella Co-authored-by: ymd-stella <7959916+ymd-stella@users.noreply.github.com> --- ros_gz_bridge/src/parameter_bridge.cpp | 3 --- ros_gz_bridge/src/static_bridge.cpp | 3 --- ros_gz_image/src/image_bridge.cpp | 2 -- 3 files changed, 8 deletions(-) diff --git a/ros_gz_bridge/src/parameter_bridge.cpp b/ros_gz_bridge/src/parameter_bridge.cpp index 49f27e6e..12aac8ab 100644 --- a/ros_gz_bridge/src/parameter_bridge.cpp +++ b/ros_gz_bridge/src/parameter_bridge.cpp @@ -172,8 +172,5 @@ int main(int argc, char * argv[]) // ROS 2 spinner rclcpp::spin(bridge_node); - // Wait for gz node shutdown - ignition::transport::waitForShutdown(); - return 0; } diff --git a/ros_gz_bridge/src/static_bridge.cpp b/ros_gz_bridge/src/static_bridge.cpp index bc2ab5d4..bf5cd38d 100644 --- a/ros_gz_bridge/src/static_bridge.cpp +++ b/ros_gz_bridge/src/static_bridge.cpp @@ -44,8 +44,5 @@ int main(int argc, char * argv[]) rclcpp::spin(bridge_node); - // Wait for gz node shutdown - ignition::transport::waitForShutdown(); - return 0; } diff --git a/ros_gz_image/src/image_bridge.cpp b/ros_gz_image/src/image_bridge.cpp index 6839e295..c7edf9dc 100644 --- a/ros_gz_image/src/image_bridge.cpp +++ b/ros_gz_image/src/image_bridge.cpp @@ -97,7 +97,5 @@ int main(int argc, char * argv[]) // Spin ROS and Gz until shutdown rclcpp::spin(node_); - ignition::transport::waitForShutdown(); - return 0; }