-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Description
I identified 2 issues and have two fixes
message = get_a_ros_pointcloud2_message()
# For PointCloud2 topics, there are two issues.
# - the __class__ - mapping is buggy
message.__class__ = sensor_msgs.msg._PointCloud2.PointCloud2
# - the converter assumes the message.field are ordered by the offsets
offset_sorted = {f.offset: f for f in message.fields}
message.fields = [f for (_, f) in sorted(offset_sorted.items())]Metadata
Metadata
Assignees
Labels
No labels