Confilct in rosbag play and publishing messages

asked 2018-04-16 03:51:45 -0500

aks gravatar image

I tried a simple use case.

Used the turtlesim example : published messages from turtle_teleop_key to turtlesim_node and recorded the data in a .bag file. Now when i play the rosbag file using rosbag play fileName, I can also publish the messages from the turtle_telep_key which changes the movement of the turtle ?

  1. Is it allowed ? Shouldnt publishing messages be blocked during playing a bag file ?
  2. Or is it an application problem and I must prevent it from my end ?
edit retag flag offensive close merge delete

Comments

Shouldnt publishing messages be blocked during playing a bag file ?

I hope things are clearer with the answer you received for #q288747, but: no, publishing is "free for all". rosbag is just one publisher, but others are free to publish as well.

gvdhoorn gravatar imagegvdhoorn ( 2018-04-16 04:15:38 -0500 )edit