ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
For relative path use this just change MY_PACKAGE to your package name. Tested on Noetic:
<launch>
<arg name="bag_file_name" value="my_bag"/>
<node pkg="rosbag" type="play" name="rosbag_play" output="screen" args="--clock $(find MY_PACKAGE)/bags/$(arg bag_file_name).bag"/>
</launch>