Simulation Speed

Requests regarding how to set up experiments in ARGoS.
mbt925
Posts: 38
Joined: Mon Aug 07, 2017 12:21 pm

Simulation Speed

Postby mbt925 » Thu Aug 31, 2017 8:02 am

I am running ARGoS on a Linux virutal machine. I think it's a bit slow. Is it because of the virtual machine or is it natural?

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Simulation Speed

Postby pincy » Tue Sep 19, 2017 4:59 pm

It's because of the virtual machine. Which VM are you using? Did you install the native extensions?
I made ARGoS.

mbt925
Posts: 38
Joined: Mon Aug 07, 2017 12:21 pm

Re: Simulation Speed

Postby mbt925 » Wed Sep 20, 2017 6:01 am

I am using VirtualBox. I did not install anything other than the app itself.

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Simulation Speed

Postby pincy » Wed Sep 20, 2017 9:24 pm

You should at least install the guest additions, which allow you to activate 3D acceleration.

Beware that VirtualBox has issues with Linux guests and 3D acceleration, especially with programs based on Qt (such as ARGoS). I strongly suggest you to switch to a different virtualization environment, such as VMWare.
I made ARGoS.

mbt925
Posts: 38
Joined: Mon Aug 07, 2017 12:21 pm

Re: Simulation Speed

Postby mbt925 » Sun Sep 24, 2017 2:01 pm

You're right. Virtualbox was not working good.
I switched to Vmware, as you suggested. Thank you.

It's unrelated to the topic, but I am getting the following error when running an experiment:

Code: Select all

~/argos3-examples$ argos3 -c experiments/diffusion_1.argos

Code: Select all

argos3: error while loading shared libraries: libargos3core_simulator.so: cannot open shared object file: No such file or directory
The compilation was OK and there was no error. I checked, there is a "libargos3core_simulator.so" file in build/core directory.

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Simulation Speed

Postby pincy » Sun Sep 24, 2017 2:03 pm

How did you install ARGoS? Which commands? If you installed ARGoS from the sources, please don't - use the binaries instead. If you had a reason to install from the sources, try running 'sudo ldconfig' to see if this fixes the issue.
I made ARGoS.

mbt925
Posts: 38
Joined: Mon Aug 07, 2017 12:21 pm

Re: Simulation Speed

Postby mbt925 » Sun Sep 24, 2017 2:09 pm

The problem was lack of GALIB library. After installation of GALIB, Everything is OK now.

mbt925
Posts: 38
Joined: Mon Aug 07, 2017 12:21 pm

Re: Simulation Speed

Postby mbt925 » Sun Sep 24, 2017 2:13 pm

The speed is very good with Vmware.

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Simulation Speed

Postby pincy » Sun Sep 24, 2017 3:59 pm

ARGoS is much faster when run natively. If you have the possibility, consider dual-booting.
I made ARGoS.


Return to “How to... ?”