Align External Point Cloud Map with the map scanned by Magic Leap 2

Unity Editor version: 2022.2.0f1
ML2 OS version: 1.3.0 dev2
MLSDK version: 1.3.0 dev2
Host OS: Windows

Error messages from logs (syntax-highlighting is supported via Markdown):
I have a point cloud map scanned by the robot that has its own frame of reference. Now I want to align this map with the map of the same space scanned by the Magic Leap 2 device. I don't need to visualize the point cloud, but there is data associated with specific coordinates in the point cloud map. I want to visualize those data at the same location when I use the Magic Leap 2 glasses.
My first question is: Is there a function that can do the alignment conversion directly?

Hi @ineedhelpty,

I have reached out to our team to see what is possible using external point cloud maps. May I ask what your use case for this is?

Best,

El

I need to collect data using other devices, e.g. a robot. However, I need to visualize the data within the same space that the data have been collected by the robot on the magic leap 2 device. They have different frames of reference, and I need to do the transformation to align them.

1 Like

This seems like a cool project. Unfortunately the Magic Leap 2 API does not have a function at the moment that allows you to align external point cloud maps. However there is an algorithm called iterative closest point that minimizes the distance between two clouds of points. I will report this feedback to the team as well. Best of luck.

@etucker Thank you for replying. Are you saying the map scanned by the magic leap 2 device using "Sapce" is a point cloud map? My problem here is how to align any kind of 3D external map with the map created by the "Space" application on magic leap 2.

Hi @ineedhelpty,

I apologize. Currently, there is not a way to externally extract the data from the spaces API and retrieve a point cloud map. I will let our team know that this is a requested feature.

Best,

El