What is the order of parameter set in launch file with include? [closed]

asked 2018-04-19 20:10:01 -0600

auzn gravatar image

I understand the new value will override older value, but what happens with include? In this example, what will be the result of parameter /test

Main launch file:

<launch>
  <param name="/test" type="string" value="a" />
  <include file="included.launch" />
  <param name="/test" type="string" value="c" />
</launch>

Included launch file:

<launch>
  <param name="/test" type="string" value="b" />
</launch>

My test shows that "/test" will be c, but is this behavior reliable?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by auzn
close date 2018-04-20 22:24:46.084048

Comments

1

I guess this is answered by #q199608 as well as the links provided therein. If so, please feel free to close this question as a duplicate. If not, please edit your question with more details about what you don't understand.

mgruhler gravatar imagemgruhler ( 2018-04-20 00:48:56 -0600 )edit