logo logo
Inicio arrow Foros...
Wednesday, 07 de January de 2009
 
 
English English  Español Español  
Próximos Eventos
10.Jun. 2009

IWANN 2009
Salamanca, Spain
11.Jun. 2009

Toward a Science of Consciousness
Hong Kong, China
14.Jun. 2009

International Workshop on Machine Consciousness
Hong Kong, China
15.Jun. 2009

The 8th IEEE International Conference on Cognitive Informatics
Hong Kong, China
22.Jun. 2009

IWINAC 2009
Santiago de Compostela, Spain
Etiquetas
Análisis Artificial Científicos Conciencia Consciencia Consciencia Artificial Conscientes Consciousness Developer Documentación Documentation Español Howto Investigación Publicaciones Reviews Robotics Robots Robótica Servicios Spanish Studio VPL artificial
Destacados
Conscious-Robots.com Forum  


Raúl
Moderador

Moderador
Mensajes: 444
graph
Karma: 6  
Re:how do i "pass" data to other services? - 2008/10/10 18:17 Hi, you don't need the SonarEntity class because it is what represent the simulation entity in the MSRS simulation environment. In your case, instead of interfacing with the simulation you interface with a log file, so there is no need of simulation entities.

LRF updates as you say are the raytracing done in the simulator in order to calculate sonar readings. Again, as you just read from a log, you don't need to calculate anythig, just read the sonar measurements from the file.

If you look into the SimulatedSonar.cs file, the following method is the one issuing the notification to the subscribers of the service:

Code:

 [ServiceHandler(ServiceHandlerBehavior.Exclusive)] public IEnumerator<ITaskReplaceHandler(pxsonar.Replace replace) {      _state replace.Body;      if (replace.ResponsePort != null)          replace.ResponsePort.Post(dssp.DefaultReplaceResponseType.Instance);      // issue notification      _subMgrPort.Post(new submgr.Submit(_statedssp.DsspActions.ReplaceRequest));      yield break; }



Take a look to the MSRS service tutorials about subscription to understand how this works. Basically this services accepts subscriptions, and sends its updated state (in this case the sonar readings) using the Subscription Manager port.

The ReplaceHandler method is called because I post a replace message to myself when I have a new sonar reading...
Raúl Arrabales Moreno. conscious-robots.com/raul
  El administrador ha deshabilitado la escritura de mensajes a los usuarios no registrados.

      Temas Autor Fecha
    thread link
how do i &quot;pass&quot; data to other services?
carlcs 2008/10/08 16:37
    emo
thread linkthread link Re:how do i &quot;pass&quot; data to other services?
Raúl 2008/10/08 17:53
    thread link
thread linkthread link Re:how do i &quot;pass&quot; data to other services?
carlcs 2008/10/09 14:45
    emo
thread linkthread linkthread link Re:how do i &quot;pass&quot; data to other services?
Raúl 2008/10/09 20:48
    thread link
thread linkthread linkthread linkthread link Re:how do i &quot;pass&quot; data to other services?
carlcs 2008/10/10 05:12
    emo
thread linkthread linkthread linkthread linkthread link Re:how do i &quot;pass&quot; data to other services?
Raúl 2008/10/10 18:17
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:how do i &quot;pass&quot; data to other services?
carlcs 2008/10/11 09:09
Titulares RSS
 Conscious Robots RSS FeedFuente RSS de Conscious Robots





¿Recuperar contraseña?
¿Quieres registrarte? Hazlo aquí
Mensajes en el Foro
 
Top! Top!