ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Significant slowdown on the Raspberry Pi while building cv_bridge

asked 2017-01-05 11:09:52 -0500

sharan100 gravatar image

I invoke the command below to rebuild the Catkin workspace:

sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo -j2

It works perfectly fine for the first 115 packages or so but slows down to a major extent when it reaches the last few packages. It is obvious that the memory is running out, as I have a whole instance of htop running in another terminal.

I am using the -j2 option to combat this problem. Yet the Raspberry Pi runs out of memory. -j1 option is too slow and takes about two days. One of the solutions in my mind is to simulate a Raspberry Pi on my Arch. I would love to hear some suggestions from you guys.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-05 15:28:53 -0500

ahendrix gravatar image

If you're using a Pi2 or Pi3 you can install Ubuntu and then install ROS through apt: ; then you don't have to build from source at all.

If you're doing lots of installations, you can do the build on one Pi, and then create a disk image and copy that instead of repeating the installation.

edit flag offensive delete link more


Can you please ellaborate on one Pi? Using a distro such as Ubuntu would be too taxing on a Raspberry Pi for the applications that I am looking at.

sharan100 gravatar image sharan100  ( 2017-01-06 03:11:29 -0500 )edit

Why do you think Ubuntu will be "too taxing"? I've been running Ubuntu for quite a while and I haven't observed a significant overhead.

ahendrix gravatar image ahendrix  ( 2017-01-06 11:54:38 -0500 )edit

It's still a full GUI desktop environment running on the RPi. I selected Raspbian Lite, as experiments show that, it barely uses 78-80 MB of the RAM on the RPi. Also, what exactly did you mean by one Pi

sharan100 gravatar image sharan100  ( 2017-01-09 06:25:41 -0500 )edit

By "one Pi" I mean a single Raspberry Pi (or Pi2 or Pi3).

ahendrix gravatar image ahendrix  ( 2017-01-09 11:30:43 -0500 )edit

So I have gone by installing Ubuntu MATE on my Raspberry Pi and it seems to be a lot less hassle. I am still doubtful about this question though.

sharan100 gravatar image sharan100  ( 2017-01-13 04:44:11 -0500 )edit

Question Tools

1 follower


Asked: 2017-01-05 11:09:52 -0500

Seen: 459 times

Last updated: Jan 05 '17