diff --git a/src/parameter_bridge.cpp b/src/parameter_bridge.cpp index f4f4bd76..65d7a5cb 100644 --- a/src/parameter_bridge.cpp +++ b/src/parameter_bridge.cpp @@ -33,13 +33,13 @@ int main(int argc, char * argv[]) { - // ROS 1 node - ros::init(argc, argv, "ros_bridge"); - ros::NodeHandle ros1_node; - // ROS 2 node rclcpp::init(argc, argv); auto ros2_node = rclcpp::Node::make_shared("ros_bridge"); + + // ROS 1 node + ros::init(argc, argv, "ros_bridge"); + ros::NodeHandle ros1_node; std::list all_handles; std::list service_bridges_1_to_2;