specify rosbag save path in launchfile
Hey,
I'm trying to specify the path to which my rosbag files will be written to. The call to launch the datalogging is happening in the launch file.
The issue I'm having is I want it to be repeatable on other peoples machines so I don't want to have to include the full file path. ie /home/doug/catkin_ws/src/bagfiles/chatter
something like /home/(find user)/catkin_ws/src/bagfiles/chatter
would be ideal.
the whole section of code that calls rosbag in the launchfile.
<arg name="data_log" default="true" />
<group if="$(arg data_log)">
<arg name="topics_logged" default="/chatter"/>
<node pkg="rosbag" type="record"
args="-o /home/doug/catkin_ws/src/bagfiles/chatter /chatter" name="record" output="screen"/>
</group>
Thanks for any help!