[robocup-msrs] changing the number of Robudog players inthe simulator
Dom Larkin
doml25 at cc.gatech.edu
Mon Jun 25 03:45:39 EDT 2007
Thanks Andrew.
Now, I do see that the unwanted services are dropped once the extra dogs are
deleted.
But
I was trying to have it work similar to the NXT simulation where I can
prevent them from loading the robots.
Currently I am waiting for all the services for the four robuDOGS to load
then deleting the unwanted robots. (I also tried deleting the robots before
they completely load and it seems to lock up the system.)
This makes debugging of the start up routines more difficult and time
consuming for me.
For example, I recently realized that my services for the robuDOG legs load
after entering the playing state. I am now trying to have them load before
entering this state. Doing this would be much faster if I only had one dog
loading.
Thanks
Dom Larkin
-----Original Message-----
From: Andrew Williams [mailto:jayhawkeye at gmail.com]
Sent: Sunday, June 24, 2007 3:01 PM
To: Dom Larkin
Cc: Kyle Johns; robocup-msrs at cc.gatech.edu; Whitney O'Banner
Subject: Re: [robocup-msrs] changing the number of Robudog players inthe
simulator
It's seemed to work for us. Only one service was loaded. Be sure to take
out one of the teams from the Team State in the referee config file. I'm
attaching the manifest and referee config file that we used.
-- Andrew
On 6/23/07, Dom Larkin <doml25 at cc.gatech.edu> wrote:
Using this technique seems to only solve the visualization problem in
the
simulator. The services for the other three dogs are still loaded. Is
there
away to stop the loading of these also?
Dom Larkin
-----Original Message-----
From: robocup-msrs-bounces at cc.gatech.edu
[mailto:robocup-msrs-bounces at cc.gatech.edu ]On Behalf Of Kyle Johns
Sent: Wednesday, June 20, 2007 10:03 PM
To: Andrew Williams; robocup-msrs at cc.gatech.edu
Cc: Whitney O'Banner
Subject: Re: [robocup-msrs] changing the number of Robudog players inthe
simulator
You are mostly right. To run just a single player, comment out all but
one
player in the manifest and change the number of PlayersPerTeam value in
SimulatedSoccer.Referee.Config.xml to 1 and change the AutoStart value
to
false. Then, the referee will start the match when a single player
announces itself. The other robudogs will still appear on the field.
You
can delete them by pressing F5 and then locating the entities you don't
want
in the upper-left pane and selecting them and pressing Delete. Press F5
again to resume the game.
The code that you reference below is simply searching in the name of the
current service to see if it has the word "goalkeeper" in it. If it
does,
it assumes that it is the goalkeeper and takes on that role.
-Kyle
________________________________
From: robocup-msrs-bounces at cc.gatech.edu
[robocup-msrs-bounces at cc.gatech.edu] On Behalf Of Andrew Williams
[jayhawkeye at gmail.com]
Sent: Wednesday, June 20, 2007 6:25 PM
To: robocup-msrs at cc.gatech.edu
Cc: Whitney O'Banner
Subject: [robocup-msrs] changing the number of Robudog players in the
simulator
Hello,
How do you change the number of players that are on the playing field of
the
simulator? For example, if we only want to run the Blue Team Offensive
player, do we comment out the other players in the manifest and then
change
the number of players in the referee manifest to one per team and only
list
one team?
Also, not sure how the following works (with the manifest URI?) to get
the
role of the player:
if (ServiceInfo.Service.IndexOf("goalkeeper") != -1)
{
_state.Role = player.SoccerPlayerRole.GoalKeeper;
}
else
{
_state.Role = player.SoccerPlayerRole.Offense;
}
-- Andrew
_______________________________________________
robocup-msrs mailing list
robocup-msrs at cc.gatech.edu
https://lists.cc.gatech.edu/mailman/listinfo/robocup-msrs
_______________________________________________
robocup-msrs mailing list
robocup-msrs at cc.gatech.edu
https://lists.cc.gatech.edu/mailman/listinfo/robocup-msrs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cc.gatech.edu/pipermail/robocup-msrs/attachments/20070624/6259d8de/attachment.html
More information about the robocup-msrs
mailing list