Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Issue trying to modify bag contents with python

So I've found out that I need a frame_id in my imu message to be able to visualize it in RViz, so I've been trying to add a frame_id to the bags I have. When I try reading through the messages in the bag I keep getting an error saying "AttributeError: 'str' object has no attribute 'secs'"

Here is the code and the output from the terminal:

image description

I think I've managed to establish that the issue is to do with the itemiterator (or whatever it's called) t, but I haven't had any luck trying to cast it to the secs type.

Any ideas?