diff --git a/moveit_py/src/moveit/moveit_ros/moveit_cpp/moveit_cpp.cpp b/moveit_py/src/moveit/moveit_ros/moveit_cpp/moveit_cpp.cpp index eaf8eee2fa..8f9dbe9019 100644 --- a/moveit_py/src/moveit/moveit_ros/moveit_cpp/moveit_cpp.cpp +++ b/moveit_py/src/moveit/moveit_ros/moveit_cpp/moveit_cpp.cpp @@ -87,7 +87,6 @@ void initMoveitPy(py::module& m) // Initialize ROS, pass launch arguments with rclcpp::init() if (!rclcpp::ok()) { - RCLCPP_INFO(getLogger(), "Initialize rclcpp"); std::vector chars; chars.reserve(launch_arguments.size()); for (const auto& arg : launch_arguments) @@ -96,6 +95,7 @@ void initMoveitPy(py::module& m) } rclcpp::init(launch_arguments.size(), chars.data()); + RCLCPP_INFO(getLogger(), "Initialize rclcpp"); } // Build NodeOptions