diff --git a/ros_gz_image/src/image_bridge.cpp b/ros_gz_image/src/image_bridge.cpp index 00aacca5..6839e295 100644 --- a/ros_gz_image/src/image_bridge.cpp +++ b/ros_gz_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