Skip to content

Commit

Permalink
One line had somehow disappeared. Fixed.
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Grans <[email protected]>
  • Loading branch information
SebastianGrans committed Aug 3, 2020
1 parent d19ee36 commit 54d1c53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sensor_msgs/sensor_msgs/point_cloud2.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def create_cloud_xyz32(header, points):
return create_cloud(header, fields, points)

def _get_struct_fmt(is_bigendian, fields, field_names=None):
fmt = '>' if is_bigendian else '<'

offset = 0
for field in (f for f in sorted(fields, key=lambda f: f.offset) if field_names is None or f.name in field_names):
if offset < field.offset:
Expand Down

0 comments on commit 54d1c53

Please sign in to comment.