This code detects a pallet with reflectors. The input is the reflection values and out put is the orientation of the pallet. The cpp code takes reflection values or intensity values over ethernet from the LIDAR. There are inbuilt packages to take intensity values from the LIDAR. The ML library is also used to find the KMEANS.