Git Product home page Git Product logo

Comments (9)

matlabbe avatar matlabbe commented on May 18, 2024

How much RAM do you have? Do you have a swap space? Maybe the compiler run out of memory when building Rtabmap.cpp. I've seen that on some compilers, some files of rtabmap require over 800 MB of RAM to compile. Can you check your memory while building?

from rtabmap.

tanmayshankar avatar tanmayshankar commented on May 18, 2024

Hi Mathieu,

The Odroid I was running it on has 2GB of RAM, but no swap. I didn't check how much memory it was consuming, but it's possible it's trying to allot the memory that doesn't exist.
Is it possible for me to run this without swap? If not, I shall try realloting some space as swap and trying to run rtabmap.

from rtabmap.

matlabbe avatar matlabbe commented on May 18, 2024

You can very how much memory is used with "top" command on console or using the system monitor.

To increase the swap without reinstalling Ubuntu, you may check this post: http://stackoverflow.com/questions/19761226/how-to-compile-ruby-with-rvm-on-a-low-memory-system

from rtabmap.

tanmayshankar avatar tanmayshankar commented on May 18, 2024

Hi Mathieu,

I set up a small swap section (256 Mb), and ran make clean && make, with my system monitor open (as well as my Chromium browser) - here is a screenshot. It doesn't appear like it's overflowing the memory - it doesn't even seem to be using any.

screenshot from 2015-06-09 10 54 48

Is it possible I put on a pre-compiled version and change my CMakeCache or something similar to get this working? I assume it won't be that simple, since executables and library linkings will differ.

from rtabmap.

tanmayshankar avatar tanmayshankar commented on May 18, 2024

Hi Mathieu,

Does it matter that I am trying to compile rtabmap on an ARM based processor? I have been trying to find the binary for Ubuntu 12.04 / Hydro, but I am not sure whether you had released one for armhf architecture. Any suggestions on how I can solve this issue?

from rtabmap.

matlabbe avatar matlabbe commented on May 18, 2024

ROS provides binaries for amd64 and i386. It looks like it is possible here to install the binaries : http://wiki.ros.org/hydro/Installation/UbuntuARM

I didn't try yet to build RTAB-Map on ARM, but if OpenCV and PCL can be built, RTAB-Map should too.

from rtabmap.

tanmayshankar avatar tanmayshankar commented on May 18, 2024

I'm on the armhf architecture, and after spending quite a while updating sources and searching around, it doesn't look like there is a binary.
One stack overflow post suggested disabling Eigen vectorization to sort out a similar error to what I have. http://stackoverflow.com/questions/22825794/double-free-or-corruption-run-time-error-while-running-pclmovingleastsquares-c

The issue is this requires a source compilation of pcl libraries, which I had tried to install previously, but failed due to Boost version issues. As you can see, I'm in a soup.

from rtabmap.

tanmayshankar avatar tanmayshankar commented on May 18, 2024

Hello Mathieu,

Some good news! RTAB-Map compiled from source. Here is what i needed to do -
0) Add a good 1Gb of swap just in case (not required in my opinion).

  1. Install Boost from source (version 1.47 or higher, required for PCL).
  2. Download PCL source package (version 1.7.2, latest release).
  3. Follow the steps in the above link, to disabled Eigen vectorization.
  4. Install PCL from source (I see what you mean when you said if it can compile PCL, it can do RTAB-Map. The PCL build took 4 hours).
  5. Modify RTAB-Map Cmake to find source PCL-1.7.2 instead of the binary installation.
  6. Clean make of RTAB-Map from source.

Perhaps we can add this to the wiki as a heads up for ARM users?

from rtabmap.

mryellow avatar mryellow commented on May 18, 2024

Got through a successful build on oDroid C1. (Indigo, Ubuntu 14.04)

Used external USB HDD for swap, didn't need PCL from source, no trouble with Eigen.

Took a few goes with USB falling asleep or something but got through in the end after 6 hours.

Now, same problem as I had with packages, crashing at startup. Might be I do need some of these other source packages, probably a bit of a stretch for C1 all the same.

from rtabmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.