How to filter and plot a PointCloud into an occupancy grid?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everybody,
I took a pointcloud with a Xbox Kinect and transformed it into world coordinates.
This is the code I used:
%The forward mapping is the composition of T1, T2, and T3.
T = T4 * T3 * T2
tform = affine3d(T)
%Transformation
ptCloud = pointCloud(xyzPoints)
ptCloudIn = ptCloud
ptCloudOut = pctransform(ptCloudIn,tform)
% showPointCloud(ptCloudOut, 'VerticalAxis', 'Y', 'VerticalAxisDir', 'up');
% xlabel('X (m)');
% ylabel('Y (m)');
% zlabel('Z (m)');
You can see the Pointcloud in the picture.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151266/image.jpeg)
Now I want to filter out all points that are 0 and higher than 1,5 in Z. Then I want to plot the pointcloud into an 2D occupancy grid. I am using 2015a and don't have the robotics toolbox.
I am new in MATLAB, so it would be nice if you can describe in detail.
Thank you very much!
Lucca
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Kinect For Windows Sensor dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!