Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

Problem with many simultaneous connects to rosmaster on OSX 10.11  #849

@jonfink

Description

@jonfink

As in http://answers.ros.org/question/240430/problems-launching-many-nodes-on-osx

I started experiencing intermittent problems with ROS (jade) on OSX 10.11 when running many nodes all trying to start up at once and access the rosmaster for subscriptions, publishes, and param server access.

Wrote a very simple test node:

#include <ros/ros.h>

int main(int argc, char *argv[])
{
  ros::init(argc, argv, "test_node");
  ros::NodeHandle pnh("~");

  ros::Rate r(100.0);

  while(ros::ok()) {

    if(!ros::master::check()) {
      ROS_ERROR("[%s] Unable to see master", ros::this_node::getName().c_str());
    }

    ros::spinOnce();

    r.sleep();
  }

  return 0;
}

And ran many (up to 100, but ran into problems by 30 or 40) instances of it.

Nodes periodically report that they are unable to contact the master. This is in keeping with what I noticed in my "real-world" setting, nodes would intermittently fail to contact master and be unable to retrieve parameter settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions