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:

      <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)" />
  • second launch file (just an example):

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