Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 475

Read parameter in launch file

$
0
0
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.

Viewing all articles
Browse latest Browse all 475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>