Robotics StackExchange | Archived questions

Confilct in rosbag play and publishing messages

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 ?

Asked by aks on 2018-04-16 03:51:45 UTC

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.

Asked by gvdhoorn on 2018-04-16 04:15:38 UTC

Answers