How to use multiple user functions at the same time?

Requests regarding how to set up experiments in ARGoS.
jtrautmann
Posts: 5
Joined: Thu Jan 30, 2020 11:29 am

How to use multiple user functions at the same time?

Postby jtrautmann » Tue Jul 28, 2020 1:41 pm

Hello,

is there a way to load multiple user functions for visualization in one scenario? I want to use two user functions, say with the labels a and b. I tried the following:

Code: Select all

<qt-opengl autoplay="false" lua_editor="false"> <user_functions library="liba.so" label="a" /> <user_functions library="liba.so" label="b" /> </qt-opengl>
But I only get the first one shown. Is there a simple way to achieve this or do I have to merge both user functions?

Thank you in advance!

jharwell
Posts: 56
Joined: Thu Jan 25, 2018 4:12 am

Re: How to use multiple user functions at the same time?

Postby jharwell » Tue Jul 28, 2020 3:14 pm

Carlo can correct me if this is wrong, but I believe you can't have more than a single set of user functions loaded by ARGoS per simulation. You could merge them, or if you really wanted to dynamically load in the second set of loop functions within the Init() function for the first to make them accessible (you would have to call all the necessary hooks manually from the first set though, as that would not happen automatically in ARGoS).

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

Re: How to use multiple user functions at the same time?

Postby pincy » Tue Jul 28, 2020 4:58 pm

John is correct!
I made ARGoS.

jtrautmann
Posts: 5
Joined: Thu Jan 30, 2020 11:29 am

Re: How to use multiple user functions at the same time?

Postby jtrautmann » Wed Jul 29, 2020 9:39 am

Ok I see. Thank you for your quick replies!


Return to “How to... ?”



cron