Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 475

Issue trying to modify bag contents with python

$
0
0
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](http://oi60.tinypic.com/2wf4oc0.jpg) 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?

Viewing all articles
Browse latest Browse all 475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>