-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
colcon build crashes because of memory overflow #7
Comments
Same problem here, I have 8gb ram. Always happen around 4 minutes build time. |
@Mechazo11 I setup 24 Gb more swap memory. I dint notice that i alrdy had 4 Gb swap. So total swap I setup is about 30Gb as shown by system monitor. Before I start to build, I directly switched off GUI. I build the whole package with: At the end, the package is sucessfully build with whole lot of warning, too much for me to keep track of. Then, i try the example provided. After I installed the natsort module, it is working now. If possible can you share briefly how you make it work in ROS2 humble? I am trying to implement ORB-SLAM on an Intel single board computer that is about 3 times more powerful than Raspberry pi 4. |
Hi @fong0802 Awesome, I am glad you got to fix the issue. As I believe you are going to be using GitHub more frequently, consider picking up some of the Markdown syntaxes. This will help to differentiate code from text. An excellent tutorial is here Now let me try to answer some of your queries
In the You can see this arrangement in
The rest is run-of-the mill
ORB-SLAM3 is a CPU-intensive library which in my experience, did not run well in Raspberry pi 4 like SoCs. I would strongly recommend going with at least the new Orin Nano board. Then it may be possible to run your image processing algorithms on GPU, use the python node to then transfer those results to ORB SLAM3 leaving most of the CPU computation powers for running ORB SLAM3. Hope these suggestions helped. Good luck with your work. With best, Updated 07/15/2024 |
@Mechazo11 Thanks for your help!! These give me a good starting point. Good luck with your publications too. |
I compiling the project with 16GB of memory plus 16GB of swap, but it still crashes due to the memory and swap being fully occupied...
The text was updated successfully, but these errors were encountered: