-
Notifications
You must be signed in to change notification settings - Fork 29
Description
When attempting to run with my rosbag I generated from a simulation I received this error, tried both in ubuntu 20 and windows 10
Working on ROS2 Foxy.
`
['/simulation/d9/gps', '/simulation/d9/imu/acceleration', '/simulation/d9/imu/orientation', '/simulation/d9/imu/orientation/rate', '/simulation/d9/imu/velocity']
Traceback (most recent call last):
File "/home/simteam/.local/bin/ros2bag-convert", line 8, in
sys.exit(main())
File "/home/simteam/.local/lib/python3.8/site-packages/ros2bag_convert/main.py", line 14, in main
data = read_bag.read_from_all_topics(file_url,True)
File "/home/simteam/.local/lib/python3.8/site-packages/ros2bag_convert/ros2bag_convert/read_bag.py", line 210, in read_from_all_topics
timestamps, messages = read_from_topic(bag_file, topic_names[i], print_out)
File "/home/simteam/.local/lib/python3.8/site-packages/ros2bag_convert/ros2bag_convert/read_bag.py", line 183, in read_from_topic
dic_data = message_converter.convert_ros_message_to_dictionary(msg)
File "/home/simteam/.local/lib/python3.8/site-packages/ros2bag_convert/ros2bag_convert/message_converter.py", line 243, in convert_ros_message_to_dictionary
dictionary[field_name] = _convert_from_ros_type(field_type, field_value)
File "/home/simteam/.local/lib/python3.8/site-packages/ros2bag_convert/ros2bag_convert/message_converter.py", line 259, in _convert_from_ros_type
field_value = convert_ros_message_to_dictionary(field_value)
File "/home/simteam/.local/lib/python3.8/site-packages/ros2bag_convert/ros2bag_convert/message_converter.py", line 240, in convert_ros_message_to_dictionary
message_fields = message.get_fields_and_field_types()
AttributeError: 'numpy.ndarray' object has no attribute 'get_fields_and_field_types'
`