ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You have to explicitly give the path to the file, for example :

<node pkg="rosbag" type="play" name="player" output="screen" args="--clock /home/me/ros_files/my_file.bag"/>

You can also use arguments, if you have multiple files to include

<arg name="path" default="/home/me/ros_files/" />
<arg name="file_1" default="my_file_1" />
<arg name="file_2" default="my_file_2" />
<node pkg="rosbag" type="play" name="player" output="screen" args="--clock $(arg path)$(arg file_1).bag $(arg path)$(arg file_2).bag"/>

I hope it helped you. Go to this page to have more info on options you can use.

Have a good day,

Bests regards,

Stéphane