multiple-InitialStatePartnering problem

I'm creating a Diagram to hook the XInputController Service to my ControlSample9 Service.

[Controller4.mvp](Diagram 1)

XInputController --Activity-ControlSample9

ControlSample9 starts its service using InitialState Controlsample9.xml
And ControlSample9 is listening (and is a partner of ) the SimpleJointSimulation9, which also needs InitialState SimpleJointSimulation9.xml to start up.

So the questions are:
1. Where should I be saving the .mvp above and its source code to correctly compile it and run it? (Given that both projects ControlSample9 and SimpleJointSimulation9 are in C:\Microsoft Robotics Studio ( 1.5)\samples\)

What I have done was, I went to "Set Configuration" for ControlSample9 Service and Imported "ControlSample9.xml", which is the IntiailStatePartnering XML file for this service, you can take a look at its code at the end of this port.

I saved the aboveDiagram1 as "Controller4.mvp" at C:\Microsoft Robotics Studio (1.5)\samples\Controller4.

Then I saved the source code of the Controller4 project in C:\Microsoft Robotics Studio (1.5)\samples\Controller4 (same as the above).

Here's the content of "C:\Microsoft Robotics Studio (1.5)\samples\Controller4 "

http://farm2.static.flickr.com/1214/1233382795_1e1c71108f_o.jpg

And Here's the content of "C:\Microsoft Robotics Studio (1.5)\samples\Controller4\Controller4 "

http://farm2.static.flickr.com/1095/1234246580_fdfc6f1076_o.jpg

You see that there areeach folder above haveboth of the following XML:

1) controlsample9 (ControlSample9.Manifest).xml

2) simplejointsimulation9 (ControlSample9.Manifest).xml

***Now the problem is, even after I try changing the parameters insimplejointsimulation9 (ControlSample9.Manifest), appears that the Controller4 Service does not attempt to load theeditted simplejointsimulation9 (ControlSample9.Manifest), at all, I don't even know what it is loading. I tried changing the simplejointsimulation9.xml in the SimpleJointSimulation9 Service's home foler too, nothing worked !

Both ControlSample9 and SimpleJointSimulation9 services were written in Visual Studio, and they both worked great with all the loading of InitialStatePartner and stuff. I'm new to VPL and I dont know what to do with this case.

In conclusion Please show me how to Compile[Diagram1] above, where to save its source code, so that each time I run it (the Controller4 Service), it will always start ControlSample9 and SimpleJointSimulation9 by RELOADING both InitialStatepartnerings:

1) controlsample9 (ControlSample9.Manifest).xml

2) simplejointsimulation9 (ControlSample9.Manifest).xml

In other words, each time I change those InitialStatePartnering XML, and re-run I should see the change.


By the way, the Manifest of ControlSample9 looks as follows:
-

<?xml version=" 1.0" ?>
<Manifest
xmlns="
http://schemas.microsoft.com/xw/2004/10/manifest.html"
xmlns: dssp="
http://schemas.microsoft.com/xw/2004/10/dssp.html"
>
<CreateServiceList>
<ServiceRecordType>
<dssp: Contract>http://schemas.tempuri.org/2007/08/controlsample9.html</dssp: Contract>
<dssp: PartnerList>
<dssp: Partner>
<dssp: Service>ControlSample9.xml</dssp: Service>

<dssp: Name>dssp: StateService</dssp: Name>
</dssp: Partner>
</dssp: PartnerList>
</ServiceRecordType>
<ServiceRecordType>
<dssp: Contract>
http://schemas.tempuri.org/2007/08/simplejointsimulation9.html</dssp: Contract>
<dssp: PartnerList>
<dssp: Partner>
<dssp: Service>SimpleJointSimulation9.xml</dssp: Service>

<dssp: Name>dssp: StateService</dssp: Name>
</dssp: Partner>
</dssp: PartnerList>
</ServiceRecordType>
</CreateServiceList>
</Manifest>

Thank you very much for your help,

[6487 byte] By [skuleguy] at [2008-3-6]
# 1

Hi,

Where the initial state file is chosen from depends a lot on how you run the diagram.

If you run a diagram directly from within VPL, then it uses the configuration information that is saved with the diagram. However, VPL copies all the files that it need to run a diagram into a temporary directory (while a diagram is running if you do a "dir" of the Microsoft Robotics Studio (1.5) directory you will see a sub-directory whose name is a GUID). This means that, in order to change the config of a service being executed from VPL, you have to make the changes within VPL.

Otherwise you need to change the config files being referenced by the manifest that is being used to start the service. The easiest way to do this is to use the DSS Manifest Editor to create and edit the manifest that you need. You can run a manifest from within the manifest editor, this allows a quick edit/test cycle on manifests and initial state configurations.

Hope This Helps

Paul

PaulCRoberts at 2007-10-2 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Visual Programming Language...

Microsoft Robotics Studio

Site Classified