On Sat, Jan 29, 2011 at 2:05 AM, Patrick Bouffard wrote: > Kartik, > > You can think of launch files like subroutines, and of course, a > subroutine needs to declare what arguments it takes and, optionally, > default values of those arguments: > > --- > Pseudocode: > main: >  call foo(arg1=false) > > subroutine foo(arg1, arg2=true): >   if arg1: something >   if arg2: something_else > > --- > > Launch file equivalent: > > main.launch: > >   >     >   > > > foo.launch: > >   >   > >   >   name="something_else"/> > > --- > > This is essentially what the documentation tells you but I found it > helped to think about the analogy between launch file arguments and > subroutine/function arguments. > > Cheers, > > Pat > This analogy really helps, thanks Pat. -- Kartik