logo logo
Inicio arrow Foros...
Sunday, 04 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
15.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:ExplorerSimSonar project error - 2007/11/14 14:10 So, I finally found the bug and fix it. I have just published a new version of the services that I have changed. You can now download an updated SimulatedSonar Service [1], and a new ExplorerSimSonar Service [2].

This is the code that I have changed in the SimulatedSonar service:

Code:

              // Raul - If state cannot be read from file create a default one             if (_state == null)             {                 _state CreateDefaultState();             }             else // Use the state saved in the file, but don't forget to allocate memory for arrays.             {                 _state.DistanceMeasurements = new double[SonarArrayLength];                 formerDistanceMeasurements = new double[SonarArrayLength];             }         /// <summary>         /// Create default service state         /// </summary>         pxsonar.SonarState CreateDefaultState()         {             pxsonar.SonarState temp_state = new pxsonar.SonarState();             // Allocation for Arcos Sensor readings.             temp_state.DistanceMeasurements = new double[SonarArrayLength];             formerDistanceMeasurements = new double[SonarArrayLength];             temp_state.MaxDistance 4000;             temp_state.HardwareIdentifier 0;             temp_state.TimeStamp DateTime.Now;              // Initialize Sonar readings.             for (int i 0SonarArrayLengthi++)             {                 temp_state.DistanceMeasurements[i] = 0.0;                 formerDistanceMeasurements[i] = 0.0;             }             // Raul - P3DX front ring sonar is 180 degress. But lateral transducers are             // Raul - centered at 90 degrees, so I consider: 196 degrees.             // Raul - I considered the aperture of one transducer is 16 degrees.             temp_state.AngularRange 196;  // 180 plus two halfs of lateral transducers.             // Raul - Angle increment for sonar transducer rays.             temp_state.AngularResolution 1.0// let's generate one ray per degree.             // Save state in case it doesn't exist.             SaveState(temp_state);             return temp_state;         }



[1] http://www.conscious-robots.com/en/robotics-studio/robotics-studio-services/simulated-sonar-service- 10.html
[2] http://www.conscious-robots.com/en/robotics-studio/robotics-studio-services/explorersimsonar- applic.html
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
ExplorerSimSonar project error
SmegHead 2007/11/02 18:05
    emo
thread linkthread link Re:ExplorerSimSonar project error
Raúl 2007/11/05 14:34
    emo
thread linkthread linkthread link Re:ExplorerSimSonar project error
Raúl 2007/11/09 19:57
    emo
thread linkthread linkthread linkthread link Re:ExplorerSimSonar project error
Raúl 2007/11/13 21:14
    emo
thread linkthread linkthread linkthread linkthread link Re:ExplorerSimSonar project error
Raúl 2007/11/14 14:10
Titulares RSS
 Conscious Robots RSS FeedFuente RSS de Conscious Robots





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