From 82377fb1bbb99a975116f418243ce57b6d051fb7 Mon Sep 17 00:00:00 2001 From: Gonzalo de Pedro Date: Thu, 21 Mar 2019 17:25:37 -0300 Subject: [PATCH] Allows propagations of cmd args to rclcpp::init Signed-off-by: Gonzalo de Pedro --- src/dynamic_bridge.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dynamic_bridge.cpp b/src/dynamic_bridge.cpp index 848188e2..f6dffe8d 100644 --- a/src/dynamic_bridge.cpp +++ b/src/dynamic_bridge.cpp @@ -455,14 +455,14 @@ int main(int argc, char * argv[]) return 0; } - // 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; + // mapping of available topic names to type names std::map ros1_publishers; std::map ros1_subscribers;