Nowdays I am using rosbag to save the msgs in my programs.I want to just change some of topic msgs in a saved bags, but keep the other msgs as what they once been.But when the program start, the first rosbag.read output is original saved msgs, but after the first rosbag.write is finished, the original saved msgs have been cleared, and just what the first rosbag.write write in the rosbag.I don't know how to edit the code in this, they are always Confused.
what I say is for example: here is a rosbag which save a under topic A, b under topic B. Now a new process start! After call rosbag.write(c to Topic B). The rosbag only have c under topic B,and a-A is removed.Does it a bug?How can I keep the a-A still alive.
↧