Saturday, June 14, 2008

Service Tutorials

Today(with my lifestyle it took 4 days) I'm blasting through the service tutorials one more time. I'm going through them step by step just to make sure I have it down. I want to be really sure before I dive into the next part, either today or tomorrow (sigh).

Once again, they are located in "...\Microsoft Robotics Dev Studio 2008\documentation\MsrsUserGuide.chm" under "Decentralized Software Services" --> "DDS Service Tutorials" --> "C#." I'm surprised to see that it's still C# 2005 based. I'm using 2008 now.

Caution: Don't use underscores in your project name. If you did, just pretend that you didn't...

Wow - let me say the service tutorials have been improved by far. So far I remember having such problems and not understanding - they even give links and tips (for things like attributes). The only thing they missed is when you use the dsshost, you first need to do a "cd.." in the command prompt.

Tutorial 1 and 2 can be completed fairly quickly with no bumps. Just read before you code. I made a few mistakes by getting ahead of myself.

Tutorial 3 reveals a tastey piece of information:

"Returning a task with yield return causes the handler to enter a wait state until the task completes. This allows you to create sequences of asynchronous operations."

That's what I need!

Just a note for service tutorial 5: it gets a little odd. I just recompiled the service tutorial 4 given and then added that reference instead - it is a little different though. The advantage of that is if there is a mistake, you can recompile the service tutorial and make changes.

Also, tutorial 5, last section - I had a bit of trouble because I was progressively using the same file for all the tutorials. I had huge compilation errors with the IncrementTick class being defined in the fifth tutorial. So I just commented out the class and any relating methods, then it worked fine. So I ended up commenting out:
  1. class IncrementTick
  2. class IncrementTickRequest
  3. void TimerHandler
  4. public IEnumerator IncrementTickHandler


I'm stopping at tutorial 5 - I would still recommend tutorial 6 but for now I want to move on with other videos and with the textbooks.

0 incoming messages (comments):