ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosmaster deadlocks sometimes when respawning nodes with name conflicts

asked 2014-01-31 04:41:41 -0500

grieneis gravatar image

We have a set up where there is a single robot running ROS and we connect laptops to it. We need to use foreign relays to connect ROS running on the laptops to the robot. If the laptops both try to spawn foreign relay nodes on the robot which have the same name, the nodes die and respawn due to name conflicts. After continuously respawning nodes for somewhere between 20 minutes and 2 hours, nodes stop respawning and rosmaster appears to lock up. It takes 100% of a cpu core and commands that query rosmaster, such as "rostopic list", just hang. Additionally, rosmaster stops printing log statements. When we try to control-C the code, the nodes have to escalate to SIGTERM in order to be killed.

The following launch file is a simplified test case of the issues we are seeing:

<launch>
  <node name="pose_ekf" pkg="robot_pose_ekf" respawn="true" type="robot_pose_ekf">
</node></launch>

It just launches an ekf node. I have a similar test case that launches a foreign relay node, but it seems to work with any roscpp node . If you launch this file twice on the same computer, it will result in nodes continuously respawning, and after 5 - 30 minutes (nodes respawn much more quickly in this test than in our system with the robot), rosmaster will lock up.

We are using ROS Fuerte on Ubuntu 12.04.

We can get around this issue on our robot by ensuring that we do not have node name conflicts, but I was wondering what actually is causing rosmaster to lock up, and if it is fixed in a newer version of ROS.

edit retag flag offensive close merge delete

Comments

Also, you shouldn't need foreign relays for simple network communication.

ahendrix gravatar image ahendrix  ( 2014-01-31 05:33:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-01-31 05:32:34 -0500

ahendrix gravatar image

Definitely a bug in rosmaster. Not likely to be fixed in newer versions.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-01-31 04:41:41 -0500

Seen: 834 times

Last updated: Jan 31 '14