Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change order in node initialization #339

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sgermanserrano
Copy link

@sgermanserrano sgermanserrano commented Dec 13, 2021

Follows comment in #316

Signed-off-by: Servando German Serrano [email protected]

Signed-off-by: Servando German Serrano <[email protected]>
Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple of comments.

  • Is this modification only required to parameter_bridge? probably we need to apply this fix to other places such as simple_bridge?
  • it would be nice to add test to make sure.

// ROS 2 node
rclcpp::init(argc, argv);
auto ros2_node = rclcpp::Node::make_shared("ros_bridge");

// ROS 1 node
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps we would want to add comments why this rclcpp::init needs to be called before ros::init.

@fujitatomoya
Copy link
Collaborator

CC: @iuhilnehc-ynos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants