紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
-
foxy下使用自定义msg并录制ros2 bag。python3.8下载安装ros2bag-convert,source环境接口后,使用命令ros2bag-convert xxxx.db3转换,报错如下:
(base) sczone@91b678582320: ~/ros2/pilot_parking/zop$ ros2bag-convert ~/DATADRIVE/robosense_raw_data/0214/zop/ros2bag/2022-02-14-10-26-20_1/2022-02-14-10-26-20_1.db3 ['/sensor_abstraction/EyeQ4VideoObject', '/sensor_abstraction/EyeQ4VideoLane', '/FS/FusContainer', '/NPA/VisionObj', '/NPA/LaneMarkerInfo', '/camera/image'] Traceback (most recent call last): File "/usr/local/bin/ros2bag-convert", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/ros2bag_convert/main.py", line 14, in main data = read_bag.read_from_all_topics(file_url,True) File "/usr/local/lib/python3.8/dist-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 "/usr/local/lib/python3.8/dist-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 "/usr/local/lib/python3.8/dist-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 "/usr/local/lib/python3.8/dist-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 "/usr/local/lib/python3.8/dist-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: 'list' object has no attribute 'get_fields_and_field_types'
-
@刚刚小飞机 在 [foxy][ros2bag-convert]转换msg失败 中说:
message_fields = message.get_fields_and_field_types()
AttributeError: 'list' object has no attribute 'get_fields_and_field_types'
把这个消息打印出来看看具体内容先,估计是我内部处理有一些小bug
-