After checking the lidar output and using matplotlib I get values that are difficult to interpret, in fact, they make no sense to me.
The compute_point_cloud function in lidar.py is supposed to return a 3d array of points, so the raw output should be interpretable. Someone correct me if I'm wrong, I can't make progress on my project if I can't use lidar.
code:
"""Generate a point cloud.
Returns:
Point cloud of 3D points, a list of hit objects, a list of rays fired.
"""
Version
Latest.
Operating System
Ubuntu 22.04
Problems
This is what I get after making two measurements with an obstacle at 3 metres and another at 5 metres. I am not sure if the obstacle is on the y-axis or the x-axis, but the output does not resemble reality.
High Level Description
After checking the lidar output and using matplotlib I get values that are difficult to interpret, in fact, they make no sense to me.
The
compute_point_cloud
function inlidar.py
is supposed to return a 3d array of points, so the raw output should be interpretable. Someone correct me if I'm wrong, I can't make progress on my project if I can't use lidar.code:
Version
Latest.
Operating System
Ubuntu 22.04
Problems
This is what I get after making two measurements with an obstacle at 3 metres and another at 5 metres. I am not sure if the obstacle is on the y-axis or the x-axis, but the output does not resemble reality.
Here is an example of code:
How I get the data: