Ask Your Question
1

launch arbitrary number of nodes

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

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
0

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

Nexus8 gravatar image

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

edit flag offensive delete link more

Comments

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 -0500 )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 -0500 )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

1 follower

Stats

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

Seen: 163 times

Last updated: Jun 23 '16