how to find the lidar angle ranges when using matchscan or matchScansGrid functions?

2 views (last 30 days)
I am getting two scans from my Lidar device (Hokuyo UTM-30LX-EW). I am fine with getting the scans in Matlab but I want to find the rotation angle to map one scan on the other. I have used "matchscan" and "matchScansGrid" but they do not return the actual rotation angle that one scan moved to the other.
It is Matlab 2018b. Looks like the issue maybe related to refScan.Angle and currScan.Angle but I don`t know how to set them up.
refScan2=lidarScan([refScan1.Ranges,linspace(-pi,pi,length(refScan1))']);
currScan2=lidarScan([currScan1.Ranges,linspace(-pi,pi,length(currScan1))']);
pose = matchScansGrid(currScan2,refScan2)
The refScan and currScan are two scans at a fixed point (no change to x or y) but a 45 degrees turn difference.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!