logo logo
Home arrow Forums...
Saturday, 11 February 2012
 
 
Main Menu
Home
Conscious Machines...
AI Techniques...
Neuroscience...
Researchers...
Publications...
Reviews...
MC Bibliography
Robotics Studio...
Forums...
Blog...
Frontpage
Upcoming Events
22.Feb. 2012

CogSys 2012
Vienna, Austria
04.Apr. 2012

TSC 2012
Tucson, Arizona
17.May. 2012

EAIS 2012
Madrid, Spain
05.Jun. 2012

Cognition & Consciousness
Menorca. Spain
02.Jul. 2012

ASSC 16
Brighton, UK
02.Jul. 2012

Revisiting Turing and his Test
Birmingham, UK
31.Oct. 2012

BICA 2012
Palermo. Italy
Tag Cloud
Associations Books Conferences Conscious Conscious Machines Consciousness Developer Documentación Documentation Español Machine Machine Consciousness Machines Neuroscience Positions Publications Research Researchers Reviews Robotics Robots Spanish Studio VPL
Spotlight
More
Reader's Preferred
MCexperts List
FAQs
Glossary
Site Map
 
Conscious-Robots.com Forum  


Raúl
Moderator

Moderator
Posts: 590
graph
Karma: 10  
Re:Simulated GPS Sensor - 2010/01/25 12:33 Hi Mik, I've posted a preliminary version of CRUBOTS, where you can see how the simulated GPS service is used.

In order to have a service available in VPL, I think you just need to compile it. Once the corresponding dll files are in the bin directory, the service will be available in VPL.

The thing about using the Simulated GPS is that there are two components (if you want to see it that way):

- The Simulated GPS sensor entity (a visual entity).
- The Simulated GPS service (associated to the former).

In order to make it work, you have to do both inserting the sensor entity to your robot, and associate it to the corresponding service. Then you can subscribe to the GPS service and get notifications.

If you look to the CRUBOTS code, the simulated robot definition code is in the MazeSimulatorRA service. The robot is created programmatically (not using a manifest):

- Creation of the GPS sensor entity:

Code:

  // Raul - Jan 2010 - Create GPS Entity private VisualEntity CreateGPSEntity() {    VisualEntity GPSent = new GPS.PioneerGPSEntity();         GPSent.State.Name "SimulatedGPSEntity";    GPSent.ServiceContract pxGPS.Contract.Identifier;                            CreateService(      pxGPS.Contract.Identifier,      Microsoft.Robotics.Simulation.Partners.CreateEntityPartner(      "http://localhost/" GPSent.State.Name)    );         return GPSent;  }



- Then, add it to the robot:

Code:

  robotBaseEntity.InsertEntity(CreateGPSEntity());



With this code, the service will be created and running when the simulated robot is created. Then you can subscribe to the Simulated GPS service from another service (like I do from the Cranium Dashboard service).
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.

      Topics Author Date
    thread link
Simulated GPS Sensor
mik 2009/12/22 13:49
    emo
thread linkthread link Re:Simulated GPS Sensor
Raúl 2009/12/23 14:23
    thread link
thread linkthread linkthread link Re:Simulated GPS Sensor
mik 2009/12/28 13:29
    emo
thread linkthread linkthread linkthread link Re:Simulated GPS Sensor
Raúl 2009/12/29 18:16
    thread link
thread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
mik 2009/12/30 10:33
    emo
thread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
Raúl 2009/12/30 22:58
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
mik 2009/12/31 11:03
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
mik 2010/01/07 10:24
    emo
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
Raúl 2010/01/17 15:05
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
mik 2010/01/18 17:34
    emo
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
Raúl 2010/01/20 13:36
    emo
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
Raúl 2010/01/20 20:23
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
mik 2010/01/22 11:42
    emo
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
Raúl 2010/01/25 12:33
    emo
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
Raúl 2010/03/23 21:06
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
JoaoVr 2011/06/14 19:41
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
JoaoVr 2011/06/15 17:27
    emo
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Simulated GPS Sensor
Raúl 2011/06/16 12:06





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