Hi,
I am new to ros and I am two launch files.
The first launch file launches a script in cpp which sets a global parameter.
The second launch file (optional run) needs to read this parameter in its args tab.
Can anyone suggest me how to do this?
P.S.
The global parameter is /folderpath
I tried creating argument folderpath.
The second launch file is
< /launch>< arg name="folderpath" value="/folderpath" />< node pkg="rosbag" type="record" name="record" output="screen" args="-O $(arg folderpath) /rostopic"/>< /launch>
Thanks in advance.
↧