miguelriemoliveira / OptimizationUtils

A set of utilities for using the python scipy optimizer functions
GNU General Public License v3.0
6 stars 0 forks source link

Problem open Bag file #66

Closed Analtino2021 closed 2 years ago

Analtino2021 commented 2 years ago

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

miguelriemoliveira commented 2 years ago

Hi @Analtino2021 ,

Please post the result of

rosbag info <bag file name>

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