livox_horizon_loam icon indicating copy to clipboard operation
livox_horizon_loam copied to clipboard

Uses up all the memory

Open griz1112 opened this issue 4 years ago • 7 comments

Noticed that this code uses up all the memory on the Xavier I'm running it on after a period of time? What is causing this? The computer has 16gig. Does it release this memory at some point or does it continue to need more?

griz1112 avatar May 23 '20 18:05 griz1112

If you use rviz for visualization, it will store all points to display the global map, which may cause memory consumption.

PanZhichen avatar May 28 '20 02:05 PanZhichen

@griz1112 @PanZhichen Hi! I met the same problem, my mem is 16g, I can hardly play a 18 mins data.Do you have a better way to solve this problem?

huangsiyuan0717 avatar Jul 06 '21 14:07 huangsiyuan0717

@griz1112 @PanZhichen Hi! I met the same problem, my mem is 16g, I can hardly play a 18 mins data.Do you have a better way to solve this problem?

I don't use the mapping node just the node that creates the pointcloud. Combine that with the output from a zed camera into rtabmap_ros for mapping and the pointcloud from the livox for ros cost maps. Rtabmap uses camera input only for loop closure. The pointcloud node I use is from loam-livox. It keeps everything in memory unlike rtabmap which uses a disk based database to store loop closure info so it doesn't eat up all the memory.

griz1112 avatar Jul 06 '21 15:07 griz1112

@griz1112 @PanZhichen Hi! I met the same problem, my mem is 16g, I can hardly play a 18 mins data.Do you have a better way to solve this problem?

I don't use the mapping node just the node that creates the pointcloud. Combine that with the output from a zed camera into rtabmap_ros for mapping and the pointcloud from the livox for ros cost maps. Rtabmap uses camera input only for loop closure. The pointcloud node I use is from loam-livox. It keeps everything in memory unlike rtabmap which uses a disk based database to store loop closure info so it doesn't eat up all the memory.

Hi! Thanks for your great idea. Can you provide some reference materials for your code, I am a new students in slam, just don't how to achieve in code.

huangsiyuan0717 avatar Jul 13 '21 02:07 huangsiyuan0717

@griz1112 @PanZhichen Hi! I met the same problem, my mem is 16g, I can hardly play a 18 mins data.Do you have a better way to solve this problem?

I don't use the mapping node just the node that creates the pointcloud. Combine that with the output from a zed camera into rtabmap_ros for mapping and the pointcloud from the livox for ros cost maps. Rtabmap uses camera input only for loop closure. The pointcloud node I use is from loam-livox. It keeps everything in memory unlike rtabmap which uses a disk based database to store loop closure info so it doesn't eat up all the memory.

Hi! Thanks for your great idea. Can you provide some reference materials for your code, I am a new students in slam, just don't how to achieve in code.

You need to grab this package https://github.com/hku-mars/loam_livox/tree/master/ Then edit livox.launch in the launch dir. Remove or comment out this line loam_livox" type="livox_laserMapping" name="livox_laserMapping" output="screen. That stops it from mapping and just gives you the pointcloud. Use that file to launch the package and you will get the pointcloud on the /livox/lidar topic

griz1112 avatar Jul 13 '21 02:07 griz1112

Thanks for your sharing!

@griz1112 @PanZhichen Hi! I met the same problem, my mem is 16g, I can hardly play a 18 mins data.Do you have a better way to solve this problem?

I don't use the mapping node just the node that creates the pointcloud. Combine that with the output from a zed camera into rtabmap_ros for mapping and the pointcloud from the livox for ros cost maps. Rtabmap uses camera input only for loop closure. The pointcloud node I use is from loam-livox. It keeps everything in memory unlike rtabmap which uses a disk based database to store loop closure info so it doesn't eat up all the memory.

Hi! Thanks for your great idea. Can you provide some reference materials for your code, I am a new students in slam, just don't how to achieve in code.

You need to grab this package https://github.com/hku-mars/loam_livox/tree/master/ Then edit livox.launch in the launch dir. Remove or comment out this line loam_livox" type="livox_laserMapping" name="livox_laserMapping" output="screen. That stops it from mapping and just gives you the pointcloud. Use that file to launch the package and you will get the pointcloud on the /livox/lidar topic

Thanks for your sharing!

huangsiyuan0717 avatar Jul 13 '21 03:07 huangsiyuan0717

Its not my code.

griz1112 avatar Jul 13 '21 06:07 griz1112