floam icon indicating copy to clipboard operation
floam copied to clipboard

RAM filling up rapidly

Open aaravrav142 opened this issue 3 years ago • 5 comments

Hi I am testing FLOAM with the ouster 64 Lidar ROS dataset available from their website. I have a 32 GB RAM, running the ROS melodic. The FLOAM is quickly filling up all the RAM within minutes of running the node.

Can you suggest something to solve this?

Thanks

aaravrav142 avatar Oct 06 '20 08:10 aaravrav142

I am facing the same issue too, the huge memory consumption mainly comes from the odom estimation node.

Benjamin-Tan avatar Oct 25 '20 08:10 Benjamin-Tan

Hi did you find any solution for this problem?

aaravrav142 avatar Nov 04 '20 08:11 aaravrav142

I faced a similar issue while running floam on the Newer College dataset recorded with an Ouster OS1-64. The odometryEstimationNode has 2 queues ( pointCloudEdgeBuf and pointCloudSurfBuf ). The callbacks velodyneSurfHandler and velodyneEdgeHandler only push into these queues, while odom_estimation() retrieves the data. Once the odometry estimation can't process the data fast enough (>100ms) both queues fill up rapidly. For usage on a real robot this may lead to incorrect behaviour, since the current estimate gets more and more outdated. It is better to replace both queues with deques and push_back new messages and pop_front older messages if a certain maximum queue size is reached. Furthermore I would recommend to reduce all subscribers / publishers queue sizes down from 100 to maybe 5 or 10 too.

JanQuenzel avatar Jul 15 '21 11:07 JanQuenzel

Hey @JanQuenzel I am also facing issues with queues filling up with my Ouster OS0-64. Have you implemented the changes you suggested yet by any chance? Cheers

masterhui avatar Feb 18 '22 13:02 masterhui

OK I just saw commit 5f592a2106400b775e00ed2d04af177af973b1d9 in your forked floam repo. I'll check it out :-)

masterhui avatar Feb 18 '22 13:02 masterhui