How to get the output of semantic lidar

Hi, I would like to get the x,y,z coordinates of the object hit by the semantic Lidar. Now I’m using this code, but it doesn’t really work:
data = np.frombuffer(point_cloud.raw_data, dtype=np.dtype([(‘x’, np.float32), (‘y’, np.float32), (‘z’, np.float32), (‘CosAngle’, np.float32), (‘ObjIdx’, np.uint32), (‘ObjTag’, np.uint32)]))
points = np.array([data[‘x’], -data[‘y’], data[‘z’]]).T
Can anyone help me with that?

What do you mean “it doesn’t really work”. What error are you receiving?

Thanks for your answer. I solved it yesterday.