Page 1 of 1

How to use multiple user functions at the same time?

Posted: Tue Jul 28, 2020 1:41 pm
by jtrautmann
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!

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

Posted: Tue Jul 28, 2020 3:14 pm
by jharwell
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).

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

Posted: Tue Jul 28, 2020 4:58 pm
by pincy
John is correct!

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

Posted: Wed Jul 29, 2020 9:39 am
by jtrautmann
Ok I see. Thank you for your quick replies!