ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'm not exactly sure, what you want to do, but I think using args should solve your problem.
Set the parameter in the base launch file to an arg that is passed in and then when launching multiple anonymous launches, you set the arg for the include (like you tried with param).
2 | No.2 Revision |
I'm not exactly sure, what you want to do, but I think using args should solve your problem.
Set the parameter in the base launch file to an arg that is passed in and then when launching multiple anonymous launches, you set the arg for the include (like you tried with param).
Update: I'm assuming you want to do the following:
Given that is what you want, I'd suggest the following: ocu_base.launch:
<arg name="param_set" />
<node ...>
<rosparam ..load.. $(find ocu)/config/$(param_set).yaml>
</node>
main.launch:
<include file=...ocu_base.launch">
<arg name="param_set" value="set1" />
</include>
<include file=...ocu_base.launch">
<arg name="param_set" value="set1" />
</include>
...
3 | No.3 Revision |
I'm not exactly sure, what you want to do, but I think using args should solve your problem.
Set the parameter in the base launch file to an arg that is passed in and then when launching multiple anonymous launches, you set the arg for the include (like you tried with param).
Update: I'm assuming you want to do the following:
Given that is what you want, I'd suggest the following: ocu_base.launch:
<arg name="param_set" />
<node ...>
<rosparam ..load.. $(find ocu)/config/$(param_set).yaml>
</node>
main.launch:
<include file=...ocu_base.launch">
<arg name="param_set" value="set1" />
</include>
<include file=...ocu_base.launch">
<arg name="param_set" value="set1" value="set2" />
</include>
...
4 | No.4 Revision |
I'm not exactly sure, what you want to do, but I think using args should solve your problem.
Set the parameter in the base launch file to an arg that is passed in and then when launching multiple anonymous launches, you set the arg for the include (like you tried with param).
Update: I'm assuming you want to do the following:
Given that is what you want, I'd suggest the following: ocu_base.launch:
<arg name="param_set" />
<node ...>
<rosparam ..load.. $(find ocu)/config/$(param_set).yaml>
command="load" textfile="$(find ocu)/config/$(arg param_set).yaml">
</node>
main.launch:
<include file=...ocu_base.launch">
<arg name="param_set" value="set1" />
</include>
<include file=...ocu_base.launch">
<arg name="param_set" value="set2" />
</include>
...