Precompile catkin workspace or ROS packages

asked 2016-12-03 20:24:50 -0600

patrchri gravatar image

updated 2016-12-04 09:02:55 -0600

Hello,

I have a Raspberry pi 3 with Raspbian on it. This single-board pc has 1gb of RAM and 100 mb of swap. From the 1 gb of RAM, approximately 700mb are available because of the Raspbian OS. I managed to install ROS Kinetic on it (after 12 hours of installation with RAM's overflows) and I also connected a RPLidar a1 on it without issues regarding the powersupply. After that I tried to catkin_make the hector_slam stack and as I found out the existing RAM memory is not sufficient enough to finish the compile, so I get "virtual memory exhausted" errors or frozen screens.

I thought of some ways to solve this, like increasing the swap memory (will make the processing too slow and it's not generally advised) or even installing another OS like Ubuntu Mate for example (will take some time), but what I would like to ask is:

Is there any way I can precompile a catkin workspace I have built on my main pc and then transfer to the raspberry so no issues arise? Is this feasible? If yes, could you provide me with tutorial-like links to do that? Lastly, from the people that have worked with raspberry, would you advise me something better as a solution?

The idea of the precompiled workspace came to me without knowing if it is something feasible or ways I can achieve that and because I don't have experience regarding that, it would be really helpful if you could provide me some links with your answer.

Thank you for your time in advance, Chris

edit retag flag offensive close merge delete

Comments

2

Not a complete answer, but what you are looking for is called cross-compilation.

gvdhoorn gravatar image gvdhoorn  ( 2016-12-04 08:03:14 -0600 )edit