From 44f8ea921b6a041925041a7425d8dac8e3c3fb03 Mon Sep 17 00:00:00 2001 From: NaokiTakahashi Date: Thu, 4 Aug 2022 21:56:46 +0900 Subject: [PATCH] Skip the process name (#278) Signed-off-by: NaokiTakahashi --- ros_ign_image/src/image_bridge.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ros_ign_image/src/image_bridge.cpp b/ros_ign_image/src/image_bridge.cpp index e1bcfe38..b667d3f1 100644 --- a/ros_ign_image/src/image_bridge.cpp +++ b/ros_ign_image/src/image_bridge.cpp @@ -84,6 +84,9 @@ int main(int argc, char * argv[]) std::vector> handlers; + // skip the process name in argument procesing + ++argv; + --argc; auto args = rclcpp::remove_ros_arguments(argc, argv); // Create publishers and subscribers