Git Product home page Git Product logo

Comments (8)

spurnvoj avatar spurnvoj commented on May 25, 2024

Hi, it seems that dependencies for the simulation were not properly installed. If you followed the instruction for mrs_uav_system, you should have the script for installing the dependencies in ~/git/simulation/installation/install.sh. Try to run the script manually to see if it is without error.

source ~/git/simulation/installation/install.sh

Note: Be sure that you have up-to-date version of the simulation repository. Call

cd ~/git/simulation
git pull

from mrs_uav_system.

O2KAN avatar O2KAN commented on May 25, 2024

Thank you for the reply. I will try it

from mrs_uav_system.

throwawayacco avatar throwawayacco commented on May 25, 2024

I have a strong suspecion it might be related to a lack of memory. When I installed the system my installation failed due to a lack of memory when building the mrs_gazebo folder. The error you're experiencing seems to be an error caused from that.

The solution would be to go into the install files and comment out the preset catkin configuration and then build it again using your own catkin settings with fewer amounts of packages / jobs

from mrs_uav_system.

Wizzya avatar Wizzya commented on May 25, 2024

Screenshot from 2021-04-26 23-33-11
I think i might be facing a similar issue and it still doesn't work on my end too. Tried partition the storage space for more ram but to no avail.

from mrs_uav_system.

spurnvoj avatar spurnvoj commented on May 25, 2024

Hi, please update mrs_uav_system repository and try to call install again. If it still crashes, modified these lines https://github.com/ctu-mrs/mrs_uav_system/blob/master/scripts/set_mrs_workspace.sh#L45-L52 by adding parameter -j $number_of_cores_for_build. For example for the first line building using only 4 cores:

catkin build mavros -c --mem-limit 75% -j 4

from mrs_uav_system.

throwawayacco avatar throwawayacco commented on May 25, 2024

My solution was to build it first with standard settings.
Then removing the catkin configuration and running it again with -j1 -p1

from mrs_uav_system.

O2KAN avatar O2KAN commented on May 25, 2024

Hello, yesterday I figured out the problem. My logfile past the almost 2gb because of that, it had been giving the error. I deleted the logfile then installed again. Then it works now.

from mrs_uav_system.

klaxalk avatar klaxalk commented on May 25, 2024

Hi, please update mrs_uav_system repository and try to call install again. If it still crashes, modified these lines https://github.com/ctu-mrs/mrs_uav_system/blob/master/scripts/set_mrs_workspace.sh#L45-L52 by adding parameter -j $number_of_cores_for_build. For example for the first line building using only 4 cores:

catkin build mavros -c --mem-limit 75% -j 4

An additional option that I would recommend is to set up a swap of an appropriate size, such that your total RAM+SWAP is roughly 2.5 times [GB] the number of your CPU virtual threads. Then, you won't have to be careful about that anymore and the compilation will be way faster with all cores. Example for 16GB SWAP:

sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1G count=16
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
grep SwapTotal /proc/meminfo

from mrs_uav_system.

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.