How to pass an argument to roslaunch file from shell script?
I have a shell script that takes some input from the user in the form of arguments and executes a launch file with some nodes. One of these nodes is a rosbag record
. Currently, I have hardcoded the output directory for the recorded bag, but I'd like to parametrize this and let the user decide where to store the folder from the shell script.
I start the node like this at the moment:
<node pkg="rosbag" type="record" name="record" output="screen" args="-o /home/output/output_name -e /myTopic"/>
I cannot figure out how to to pass this args
from a shell script. Any ideas? it should be possible...