[robocup-msrs] Problem while using the SimulatedRobuDOG service

Zemat the.zemat at gmail.com
Tue May 29 19:59:18 EDT 2007


Ok, I checked and the problem arose because I mistakenly installed again the
old package over the new one.

I redownloaded the package and installed it, which fixed the problem (frames
are now 320x240). Thanks for the help!

Regards,
Juan Bernardo Tamez.

On 5/29/07, George Chrysanthakopoulos <georgioc at microsoft.com> wrote:
>
>  Hi please make sure you have the latest package from robosoft. They had
> uploaded one that used the wrong resolution when requesting camera frames,
> so the sim webcam always returned fault.
>
>
>
> You can specify the correct frame dimensions (use 320x240), in the
> QueryFrame operation, if you want to directly fix this in the soccer player
> code below.
>
>
>
> Thank you
>
> g
>
>
>
> *From:* robocup-msrs-bounces at cc.gatech.edu [mailto:
> robocup-msrs-bounces at cc.gatech.edu] *On Behalf Of *Zemat
> *Sent:* Tuesday, May 29, 2007 12:40 AM
> *To:* robocup-msrs at cc.gatech.edu
> *Subject:* [robocup-msrs] Problem while using the SimulatedRobuDOG service
>
>
>
> Hi,
>
> I have been trying to use the robudogsoccerplayer project but the
> simulation seems to be unable to correctly get the current frame.
>
> While executing the next lines of code in SimpleRobuDOGSoccerPlayer.cs,
> line 461:
>
> Activate(Arbiter.Choice(
>                 query.ResponsePort,
>                 delegate(webcam.QueryFrameResponse rsp)
>                 {
>                     _lastFrame = rsp.Frame;
>                     // tell our webcam to update its frame
>                     _robotCam.Post(new webcam.UpdateFrame());
>
>                     // now run some internal recognition to determine if
> we see the ball
>                     // and if we do, where to go.
>                     // Also determine where the opponent goal is.
>                     SpawnIterator(ProcessFrameAndDetermineBehavior);
>                 },
>                 delegate(Fault f)
>                 {
>                     _lastFrame.Initialize();
>                     LogError( LogGroups.Console, "Could not query webcam
> frame", f);
>                     StartWebCamTimer();
>                 }));
>
> The simulation keeps using the delegate(Fault f) delegate which implies a
> failure to get the current frame. Now, there appears to be an extra bug here
> since _lastFrame.Initialize(); throws a NullReferenceException.
>
> Anybody has an idea of why the service keeps failing to get the webcam
> image?
>
> By the way, the simulatedsoccer.robudog.fourplayers.manifest.xml file,
> which is used by the robudogtutorial1 project, incorretly uses the http://schemas.microsoft.com/robotics/2007/02/simplesoccerplayer.html
> schema as contract for the robudogsoccerplayer service when it should be
> using the http://schemas.tempuri.org/2007/05/robudogtutorial1.html schema
> instead, causing it to use the simplesoccerplayer service instead of the
> RobuDOGTutorial1 service.
>
> Regards,
> Juan Bernardo Tamez
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cc.gatech.edu/pipermail/robocup-msrs/attachments/20070529/48815f5f/attachment.html 


More information about the robocup-msrs mailing list