Gazebo | Ignition | Community
Ask Your Question
1

Plugin automatic compiling

asked 2014-12-10 10:12:19 -0600

djou07 gravatar image

Hello,

Can anyone help me to find how to compile in an automatic way a plugin without the manual way in the terminal ?

thanks in advance

edit retag flag offensive close merge delete

Comments

for more detail, I am trying to use genetic algorithms to evolve morphologies and controllers of many robots at the same time, so I am wondering how to compile a plugin of a new robot at run time simulation programmatically.

djou07 gravatar imagedjou07 ( 2014-12-10 11:47:27 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-12-11 12:57:25 -0600

nkoenig gravatar image

updated 2014-12-16 10:30:47 -0600

You'll have to use system calls, like execv to run cmake & make.

edit flag offensive delete link more

Comments

Can you please give me further informations about system calls and an example how to use execv, (the link to execv do not work), thank you

djou07 gravatar imagedjou07 ( 2014-12-12 04:04:32 -0600 )edit
1

Fixed the link. Searching google for execv will produce numerous results and examples.

nkoenig gravatar imagenkoenig ( 2014-12-16 10:31:53 -0600 )edit
1

answered 2014-12-12 02:45:18 -0600

scpeters gravatar image

Another idea: if your controller can be parameterized, then you could compile the plugin once and read in a separate parameter file for each test run.

edit flag offensive delete link more

Comments

I did not program the controller yet, probably it will be a neural network, but I will try that out, thank you for your help

djou07 gravatar imagedjou07 ( 2014-12-12 03:59:19 -0600 )edit

Question Tools

Stats

Asked: 2014-12-10 10:12:19 -0600

Seen: 297 times

Last updated: Dec 16 '14