Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Question about lidar data #37

Open
daydreamer2023 opened this issue May 7, 2021 · 0 comments
Open

Question about lidar data #37

daydreamer2023 opened this issue May 7, 2021 · 0 comments

Comments

@daydreamer2023
Copy link

I got a Error Truncated data with the codes:

import sys
sys.path.append("/usr/lib/zendar")
sys.path.append("./viewer")

import data_pb2
from lidar_points_frame import LidarPointsFrame
from radar_data_streamer import (
    ProtoStreamReader,
    ProtoStreamWriter,
)

lidar_pbs_path = 'XXX/ZENDAR/2020-02-12_2237/004/lidar/00/stream.pbs'
data = ProtoStreamReader(lidar_pbs_path, data_pb2.LidarPointsFrame, LidarPointsFrame,header_size=8)  
data.__enter__()  
data = iter(data)  
lidar_clouds = next(data)
for pt in lidar_clouds.point_cloud: 
    print(pt.position_local)

data = fp.read(msg_length)
if len(data) != msg_length:
print('Truncated data')
return None

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant