From: Esposito M. <mar...@in...> - 2006-05-26 16:43:20
|
Dear Sirs, I'm using Player and Gazebo for simulated experiments togheter with genet= hic algorithms and neural networks. I'm doing trials of about 64000 simulatio= n cycles, each cycle lasts at least 1,5 minutes. For this purpose I created a java procedure named GazeboCommander that gi= ven the Player config file/s and the Gazebo world file, open the gazebo s= erver on the next free port, and Player/s connecting on that gazebo port = and listening on subsequential ports. An example: I ask the procedure to open a gazebo with 3 Players connecting to it. I s= imple give it one gazebo world file and 3 player config files and this ma= kes a new instantiation of a GazeboCommander class that 'll open the gaze= bo server on the first free port, i.e. on the port 5, and 3 Player listen= ing at 6500, 6501 and 6502 ports (ports that who uses the program may ign= ore completely). When the execution terminates I simple tell the istance = of GazeboCommander to close and all the process running for that specific= gazebo and gazebo itself at the port 5 (and not on the other eventually = ports) will be closed. My problem is that this beautiful classes makes use of the Player 1.6 -g = option!!! With Player 2.0, as this option isn't there any more, to modify= my class in a suitable way, I would have to make the class write at run-= time a config file for every opening Player and so at least 64000 files!!= ! Why don't you reinsert in some way the old and dear -g option? Of course I'd like to share this java class if useful... Thanks I hope you can help us. F.Donnarumma, M.Esposito University Federico II of Naples Italy |