Skip to content

Commit

Permalink
Update LIDAR_data.md
Browse files Browse the repository at this point in the history
  • Loading branch information
okrusch authored Dec 3, 2023
1 parent 37e606a commit dcd0387
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions doc/03_research/02_perception/LIDAR_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This File discusses where the LIDAR-Data comes from, how its processed and how w

## Origin

LIDAR-Data comes in Pointclouds from a specific LIDAR-Topic.
LIDAR-Data comes in Pointclouds from a specific LIDAR-Topic.

`rospy.Subscriber(rospy.get_param('~source_topic', "/carla/hero/LIDAR"),
PointCloud2, self.callback)`
Expand All @@ -18,16 +18,12 @@ To do this the lidar-distance node first converts pointcloud data to an array, w

`paf23-agent-1 | (76.12445 , -1.6572031e+01, 13.737187 , 0.7287409 )`


`paf23-agent-1 | (71.9434 , -1.8718828e+01, 13.107929 , 0.7393809 )`


`paf23-agent-1 | (-0.3482422 , -1.6367188e-02, -0.20128906, 0.99839103)`


`paf23-agent-1 | (-0.3486328 , -1.4062500e-02, -0.20152344, 0.99838954)`


`paf23-agent-1 | (-0.35070312, -2.3828126e-03, -0.2025 , 0.99838144)`

The first three values of each row correspon to x, y, z.
Expand All @@ -36,20 +32,18 @@ x - the X Cartesian coordinate of a point (float32)

y - the Y Cartesian coordinate of a point (float32)

z - the Z Cartesian coordinate of a point (float32)
z - the Z Cartesian coordinate of a point (float32)

It wasn´t specified anywhere, what the 4th values represents. My best guess is some sort of intensity.


## Distance Calculation

The distance to a point is calculated by the euclidian distance to (0,0,0) for every point in the point cloud.

`distances = np.array(
[np.linalg.norm(c - [0, 0, 0]) for c in coordinates_xyz])`

They then publish the minimum and maximum distance.

They then publish the minimum and maximum distance.

## Open questions

Expand All @@ -59,5 +53,4 @@ They then publish the minimum and maximum distance.
2. How do we translate cartesian coordinates to pixel in the Image and vice-versa?

We should be able to set the bounding box of the LIDAR-PointCloud2 to the camera-calibration.



0 comments on commit dcd0387

Please sign in to comment.