logo logo
Home arrow Forums...
Monday, 21 May 2012
 
 
 
Conscious-Robots.com Forum  


Didro
User

Fresh Boarder
Posts: 1
graphgraph
Karma: 0  
MSRS could not load SimulatedSonar service - 2010/10/01 11:00 Hello,

I was download SimulatedSonar and have some problems with it.

The problem is that when I run the manifest file, I could see any information message about sonar service in console. In fact I get only these messages:

* Service started [10/01/2010 11:53:48][http://gmdidro-hp:50000/directory]
* Service started [10/01/2010 11:53:48][http://gmdidro-hp:50000/constructor]
* Service started [10/01/2010 11:53:48][http://gmdidro-hp:50000/console/output]
* Starting manifest load: file:///C:/Users/gmdidro/Microsoft Robotics Dev Studio 2008 R2/samples/config/MultipleSimulatedSensors.SimulatedSonar2.user.manifest.xml
[10/01/2010 11:53:49][http://gmdidro-hp:50000/manifestloaderclient]
No physics hardware present, using software physics.
* Manifest load complete [10/01/2010 11:53:53][http://gmdidro-hp:50000/manifestloaderclient]
* Service started [10/01/2010 11:53:58]
[http://gmdidro-hp:50000/gamecontroller/6227ae61-6a67-4d8a-8a68-1aa3d94f38b6]
* Service started [10/01/2010 11:54:03]
[http://gmdidro-hp:50000/simulateddifferentialdrive/c29d3779-e853-4c43-9625-36a7eec25f97]
* Service started [10/01/2010 11:54:04]
[http://gmdidro-hp:50000/simulatedwebcam/83102fba-4e14-468b-b7f9-5795693b1bd4]
* Service started [10/01/2010 11:54:04]
[http://gmdidro-hp:50000/simulatedcompass/effb3bcf-5946-4e9c-aa0a-723b604e563c]
* Service started [10/01/2010 11:54:04]
[http://gmdidro-hp:50000/simphotocell/3699cf00-f18b-4e61-b543-f0b21f264d27]
* Service started [10/01/2010 11:54:04]
[http://gmdidro-hp:50000/simulatedir/68822966-0104-41ec-adb6-9fa5bada7b25]
* Service started [10/01/2010 11:54:04]
[http://gmdidro-hp:50000/simulatedlrf/e2d27a3c-a503-47ce-8058-622369e3954b]

I run that manifest from command line:
"..Microsoft Robotics Dev Studio 2008 R2binDssHost32.exe" /p:50000 /t:50001 /m:"samples config MultipleSimulatedSensors .SimulatedSonar2.user.manifest.xml"

And when debug SimulatedSonar code I see, that method InsertEntityNotificationHandlerFirstTime had never called.
I think that somethink wrong with my manifest, just because I based it on standart MultipleSimulatedSensor manifest and I really don't have fully understanding on manifest format.
My version of the Microsoft Robotics Developer Studio 2008 is 2.1.61.2.

Please, help me.

Thank you.

Post edited by: Raúl, at: 2010/10/02 11:25
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Re:MSRS could not load SimulatedSonar service - 2010/10/02 11:24 Hi,

Please, use the last version of the simulated sonar, which is included as part of CRUBOTS download at:

--> MRDS 2008 R2 Services

Also, if you look at the other services in this package, you'll see that in order to get the simulated sonar service working you need to create the sonar entity associated to your robot. For instance, you could look at the MAzeSimulatorRA.cs file (the maze simulator service), where the simulated sonar is used:

First, we need a reference to the service proxy:

Code:

 using pxsonar Cranium.Simulation.Sensors.Proxy;



Then, when we create the robot, we can add the simulated sonar entity, and specify its position (relative the robot chassis):

Code:

 SonarEntity sonar1 CreateSonar(0.0f); robotBaseEntity.InsertEntity(sonar1);



And here is the create sonar function:

Code:

 /// <summary> /// Creates a frontal SONAR array entity for the Pioneer 3 DX robot.  /// </summary> /// <param name="dx">X position of sonar source "rays"</param> /// <returns></returns> private SonarEntity CreateSonar(float dx) {    // Create a Sonar Entity.    // Place it 30cm above base CenterofMass.     SonarEntity sonar = new SonarEntity( new Pose(new Vector3(dx0.30f0)) );    sonar.State.Name "SimulatedSonar";    // TT - From Oct CTP    sonar.SonarBox.BoxState.DiffuseColor = new Vector4(0.25f0.25f0.8f1.0f);    // Create Sonar simulation service and specify    // which entity it talks to    CreateService(       pxsonar.Contract.Identifier,                Microsoft.Robotics.Simulation.Partners.CreateEntityPartner(          "http://localhost/" sonar.State.Name));    return sonar; }



Hope this helps..
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.





Lost Password?
No account yet? Register
 Conscious Robots RSS FeedConscious Robots RSS Feed

Find us on Facebook

Follow us on TwitterFollow us on twitter
Spotlight

Machine Consciousness Bibliography Database

 

ConsScale
The Cognitive Machine Consciousness Scale

 
Last Posts in Forum
 
CR
miel continental