Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Namespace attributes cannot be empty, so it's not directly possible to make something like that optional I believe.

Something like this might work:

  • first launch file:

    <launch>
      <arg name="use_namespace" default="false" />
      <include file="other.launch"     if="$(arg use_namespace)" ns="my_ns" />
      <include file="other.launch" unless="$(arg use_namespace)" />
    </launch>
    
  • second launch file (just an example):

    <launch>
      <param name="la" value="123" />
    </launch>