miguelriemoliveira/OptimizationUtils

Problem open Bag file

Closed this issue · 1 comments

Iḿ having problem open the Bag file we saved in the last meeting. evry time gives me empty
@miguelriemoliveira @manuelgitgomes

    bag = rosbag.Bag('simplebot_2021-11-26-15-13-59.bag')

    for topic, msg, t in bag.read_messages(topics=['Left_scan', 'right_scan']):
       print(msg)

       dictionary.update({"message": message_converter.convert_ros_message_to_dictionary(msg)})
       # json_str = json_message_converter.convert_ros_message_to_json
    bag.close()
    print(dictionary

teste

Hi @Analtino2021 ,

Please post the result of

rosbag info <bag file name>

I think you will see that you have the wrong topic names...