Matlab freezes when trying to addScan to robotics.LidarSLAM object

2 visualizzazioni (ultimi 30 giorni)
I've been trying to use the robotics.LidarSLAM function to create an object which plots the multiple lidar scans I have but when I try to add a second scan to the object (usnig addScan), Matlab essentially freezes (stays in the busy state) and I have to force close and restart matlab as a result. I've left it for 30-45 minutes before with no luck and I was wondering if anyone has experience or might know why this is happening.
I have a bunch of lidar scans which I took from the free space sensor in IPG CarMaker which I am looking to plot in this lidar SLAM object. After setting up the initial parameters (lidar range 100m, resolution 20, loop closure threshold 200, loop closure search radius 10), I then begin to add scans to the object. It has no problem adding the first scan which I can plot and see it looks fine but as soon as I try to add a second scan (I've tried adding different scans each time), Matlab tries adding it but basically freezes and remains 'busy' forcing me to close matlab and restart. Even adding in [isScanAccepted, LoopClosureInfo, optimisationInfo] doesn't help and I'm stuck here wondering what to do now.
I don't think the problem is the lidar scans themselves as when I input the first scan, the plot of it looks good and it is able to accept it but I have no clue why this is happening and would appreciate any help with resolving this if anyone has an idea. Thanks
  3 Commenti
Amrik Sandhu
Amrik Sandhu il 3 Gen 2019
Thanks for replying, decreasing the resolution seems to have worked. With a resolution of 5 each addScan only takes 30 seconds or so. I think the lidar data I'm using might be a bit heavy (1000 points) hence why it still takes 30 seconds to process but this is better than nothing.
Sarah Haider
Sarah Haider il 28 Gen 2019
please help me when l need to use the code of slam implementation the error in(lidarSlam=robotic.lidarSlam(mapresolotion,maxLidarRange)
How can I solve this error and why this error occure when l use the code

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Labeling, Segmentation, and Detection in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by