add rosbag option for set loop

add rosbag option