ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Can the number of nodes in a launch file occur issues ?

asked 2018-03-28 09:21:58 -0600

Delb gravatar image


Half of the time I launch my project an issue occurs. I'm wondering if it's simply coming from the fact that I launch 15 nodes with one launch file ? (but I would be surprise that a launch file couldn't handle it)

To be more specific, the issue is only with rviz and/or gazebo failing to launch. Is it because I launch too much nodes at the same time or because I launch all the nodes in the same launch file, causing the needed nodes for Gazebo/rviz not being initialized fast enough ?

edit retag flag offensive close merge delete


What issues come up?

jayess gravatar image jayess  ( 2018-03-28 13:11:20 -0600 )edit

When Rviz crashes there is no error output but the rviz icon is frozen and I can only execute killall rviz to stop it and when Gazebo crashes I have [gazebo-3] process has died [pid 24958, exit code 255.

Delb gravatar image Delb  ( 2018-03-29 01:39:55 -0600 )edit

I asked the question out of desperation, it's probably what @Stefan Kohlbrecher said but I can't find the right soltuion so I try to explore every possibility.

I will post my solution if I manage to solve it since lots of people struggle with Gazebo but no one as the right answer ;)

Delb gravatar image Delb  ( 2018-03-29 01:42:23 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-03-28 09:48:02 -0600

No, this should not be an issue, we've been using single launch files with a significantly higher number of nodes started with them with no issues.

If rviz and/or gazebo specifically have issues, that might point to a graphics driver related cause (seeing how they both use OGRE and are somewhat sensitive to gfx driver setup). You'll find many posts on this site for both gazebo graphics crashes and rviz graphics crashes.

edit flag offensive delete link more


Thank you for your answer I've always been wondering about this, and yes you're probably right for the drivers but I already searched a lot without finding the solution.

Delb gravatar image Delb  ( 2018-03-29 01:46:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-03-28 09:21:58 -0600

Seen: 203 times

Last updated: Mar 28 '18