EAIBOT / ydlidar

The driver of ydlidar for ROS on the linux !
101 stars 61 forks source link

Raspberry Pi runs out of Memory when running 'catkin_make'. Have tried 'catkin_make -j1' but still freezes the Raspberry Pi #11

Open abazbaz opened 5 years ago

marcuscbehrens commented 5 years ago

had the same problem on a kinetic ubuntu downloaded from https://downloads.ubiquityrobotics.com/pi.html 

will try running without the desktop to see if then memory is sufficient

marcuscbehrens commented 5 years ago

compile wen through when doing the catkin_make from the console and not from the desktop. to go to console on boot follow this advise:https://askubuntu.com/questions/870221/booting-into-text-mode-in-16-04

I'm still struggling to get it to work - /dev/ydlidar not found. Maybe there is an assuption that this thing is plugged to a specific usb port on a pi?

marcuscbehrens commented 5 years ago

I had to unplug it and plug it back in - now t works end-to-end

So make sure you run the make from the terminal without desktop

sdoughtie commented 5 years ago

I had to increase my swap space to 1GB

This might help:

http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Kinetic%20on%20the%20Raspberry%20Pi

It is highly likely that the compilation will fail with an "internal compiler error" caused by memory exhaustion. A quick fix for this is to add swap space to the Pi and recompile. If the error persists try building with the -j2 option instead of the default -j4 option:

Adding Swapspace to the Pi: http://raspberrypimaker.com/adding-swap-to-the-raspberrypi/