YDLIDAR / ydlidar_ros2_driver

ydlidar driver package under ros2
Other
54 stars 99 forks source link

Build problem - Blocked at 50% #8

Open Valneltin opened 3 years ago

Valneltin commented 3 years ago

Hello,

I have a problem during the build when I run the build of the ydlidar_ros2_driver package after the colcon build --symlink-install :

[1min 16.4s] [0/1 complete] [ydlidar_ros2_driver:build 50% - 1min 15.5s]

I use Ubuntu 20.04 Desktop on a Raspberry Pi. I've follow the best as I could the indication to install YDLidar-SDK package and seems to work when I run the test. So I don't know where there is a problem.

Do you have an idea ? Could you help me please ?

Have a good day

swobias commented 1 year ago

I had the same issue first. The problem is that your raspi has only limited RAM. Mine had only one GB of RAM and therefore stopped doing anything when the RAM resources were used. The solution is to give your pi additional RAM. This can be achieved by providing swap memory. If your pi runs Ubuntu you can follow along this tutorial: https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04-de (it says ubuntu 20.04 but worked fine for 22.04) If your pi runs on raspian you could follow this one: https://pimylifeup.com/raspberry-pi-swap-file/