set parameter when remapped (launch file) [closed]
I remapped the node name through launch file, also I set a parameter inside launch file. What happened is, the parameter is set on the original name of the node. Heres my launch file:
<launch>
<node name ="original_node" pkg ="test_pkg" type ="original_node" output="screen">
<remap from="/original_node" to="/new_node"/>
<param name="number_string" type="string" value="123456" />
</node>
</launch>
Heres the rosparam list:
/original_node/number_string
/rosdistro
/roslaunch/uris/host_public_virtualbox__41145
/rosversion
/run_id
Im expecting to have /new_node/number_string on my rosparam list. Any guide on how can I set my parameter based on the remapped node name inside launch file?
Note: I tried putting under </node> but I explicitly typed the remapped node. This one works but is there any other method in which I only change the remap and not the param name?
<launch>
<node name ="original_node" pkg ="test_pkg" type ="original_node" output="screen">
<remap from="/original_node" to="/new_node"/>
</node>
<param name="/new_node/number_string" type="string" value="123456" />
</launch>