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

launch arbitrary number of nodes

asked 2016-06-23 08:43:23 -0600

baraki gravatar image

I'm trying to control a swarm of quadcopters. Each quadcopter has a name, and 'launching' a quadcopter involves making a namespace for it and starting up a few nodes. I was wondering if, when using the 'roslaunch' command, I could give an arbitrary number of names as arguments and then make a namespace and include another launch file for every name. I don't think it's possible but I wanted to check.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-23 09:17:48 -0600

Nexus8 gravatar image

It is possible. Check the roslaunch tips for large projects.

edit flag offensive delete link more


I've read through that, and its only solution is to set environment variables. I will would like to run between 1 and 15 quadcopters. Each one has a different name and I want to be able to use different combinations of them. As far as I can tell that page doesn't explain how to do that?

baraki gravatar image baraki  ( 2016-06-23 10:26:14 -0600 )edit

Choosing a subgroup from the group of 15 quadcopters is software/addressing related. That goes beyond of what launch files can do. On launch files you can define addresses and names, you can make sure that all names and addresses are different. You can comment out nodes/quadcotpers not required.

Nexus8 gravatar image Nexus8  ( 2016-06-23 10:53:25 -0600 )edit

Question Tools

1 follower


Asked: 2016-06-23 08:43:23 -0600

Seen: 245 times

Last updated: Jun 23 '16