Skip to content

Commit

Permalink
log after rclcpp init
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdavidfagan authored and tylerjw committed Feb 7, 2024
1 parent 6fa8480 commit ea98e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moveit_py/src/moveit/moveit_ros/moveit_cpp/moveit_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const char*> chars;
chars.reserve(launch_arguments.size());
for (const auto& arg : launch_arguments)
Expand All @@ -96,6 +95,7 @@ void initMoveitPy(py::module& m)
}

rclcpp::init(launch_arguments.size(), chars.data());
RCLCPP_INFO(getLogger(), "Initialize rclcpp");
}

// Build NodeOptions
Expand Down

0 comments on commit ea98e73

Please sign in to comment.