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


<< Start < Prev 1 2 Next > End >>
mik
User

Junior Boarder
Posts: 7
graphgraph
Karma: 1  
Simulated GPS Sensor - 2009/12/22 13:49 Hi all,

I need to get robot position with Microsoft Robotics Studio and i want to use Simulated GPS Sensor.
A simple example of my VPL project is here: http://img8.yfrog.com/img8/2058/gpsv.jpg.
But i don't see the X coordination.. I have edited the manifest as well http://img705.imageshack.us/img705/7195/gpsmanifest.jpg


Any ideas?

Thank you
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Re:Simulated GPS Sensor - 2009/12/23 14:23 Hi, I hardly ever use VPL, and I've never used the simulated GPS service, so I'm probably of little help here. But I was curious and I looked into the Simulated GPS service code.

The X coordinate member:

Code:

 /// <summary> /// X component /// </summary> [DataMember] [Browsable(false)] public double X getset; }



It has the Browsable attribute set to false, which means that it won't show in a properties window. It is however there and you should be able to use it.

The service supports subscriptions, so the way to use it is to subscribe to it from your service, and then access to the X, Y, and Z coords in your notification handler (as you will get the GPSState object).

In VPL, I think you have to use the round output for notifications. Then, I think you can select the Replace notification, so you can have access to the updated GPS service state (including X coord.).

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

Junior Boarder
Posts: 7
graphgraph
Karma: 1  
Re:Simulated GPS Sensor - 2009/12/28 13:29 Hi Raùl,

Thank you very much for your replay.

I think the trouble isn't round output for notifications because how you can see here http://img706.imageshack.us/img706/3446/gps.png i have connected simulated gps sensor into notification pin and i haven't seen anything alert when i run it.

So in my opinion the problem is the manifest. In fact when i import the manifest i don't see any xml to import and in the previous example if generic differential driver and simulated gps sensor are not in the same manifest it doesn't work.

So i need to know how to import simulated gps sensor in a manifest in order to run it.

I hope you can help me.

Thanks so much.
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Re:Simulated GPS Sensor - 2009/12/29 18:16 Hi, have you tried to use the DSS Manifest Editor?

Anyhow, Looking again at the Simulated GPS sensor service code, it seems that it needs to be associated to a simulated entity. And it takes this entity for the partner list.

Basically, I think you need to declare the GPS sensor service as a partner of the entity that you want to get its position. Probably the IRobot Create Motor Base (not the diff drive). So your GPS would be a partner of the motor base, the same way as the differential drive. You could give it a try...
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.
mik
User

Junior Boarder
Posts: 7
graphgraph
Karma: 1  
Re:Simulated GPS Sensor - 2009/12/30 10:33 Raúl wrote:
Hi, have you tried to use the DSS Manifest Editor?

Sure! In the first post there is a screen of my customize manifest
http://img705.imageshack.us/img705/7195/gpsmanifest.jpg


Anyhow, Looking again at the Simulated GPS sensor service code, it seems that it needs to be associated to a simulated entity. And it takes this entity for the partner list.

Basically, I think you need to declare the GPS sensor service as a partner of the entity that you want to get its position. Probably the IRobot Create Motor Base (not the diff drive). So your GPS would be a partner of the motor base, the same way as the differential drive. You could give it a try...


In this screen http://img705.imageshack.us/img705/7195/gpsmanifest.jpg I have written XML IRobot Create Motor Base in entity form but it doesn't work. So i think it could be perfect to know which entity it need to be used.

It's very strange that Microsoft writes a services such as GPS and it's so difficult to use it.

Thank you very much to support me!

Mik
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Re:Simulated GPS Sensor - 2009/12/30 22:58 Hmmmm Let me try and add the GPS service to my Explorer code and see if I can get it working.. I'll let you know as soon as I test it.
Cheers,
Raúl.
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.
mik
User

Junior Boarder
Posts: 7
graphgraph
Karma: 1  
Re:Simulated GPS Sensor - 2009/12/31 11:03 Thank you very much Ràul!
I'll wait your replay..

Have a nice new year's eve!
  The administrator has disabled public write access. Please, register to participate in the forum.
mik
User

Junior Boarder
Posts: 7
graphgraph
Karma: 1  
Re:Simulated GPS Sensor - 2010/01/07 10:24 Sorry... have you ever seen this trouble?
Thank you!
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Re:Simulated GPS Sensor - 2010/01/17 15:05 I am afraid I've been too busy, I was meaning to do it two weeks ago, but didn't have a chance yet to add the simulated GPS service to my code.. I'll get back to you as soon as I try it. Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.
mik
User

Junior Boarder
Posts: 7
graphgraph
Karma: 1  
Re:Simulated GPS Sensor - 2010/01/18 17:34 Thank you very much.. I'll wait your replay
  The administrator has disabled public write access. Please, register to participate in the forum.
<< Start < Prev 1 2 Next > End >>





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