Gps Sensor

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "=GpsSensor= Agocontrol is able to manage Gps sensor. ==Display== GpsSensor is displayed like other sensors with a widget containing: *name of your sensor *info of last posit...")
 
 
Line 17: Line 17:
 
*And finally send to agocontrol your position emitting this event:
 
*And finally send to agocontrol your position emitting this event:
 
<code>emit_event_raw(<internalid>, "event.environment.positionchanged", "map{latitude=?, longitude=?}")</code>
 
<code>emit_event_raw(<internalid>, "event.environment.positionchanged", "map{latitude=?, longitude=?}")</code>
 +
 +
==Installation==
 +
*We need the gps module to run:
 +
apt-get install python-gps
  
 
==Informations==
 
==Informations==
 
*Agocontrol only manages [http://en.wikipedia.org/wiki/WGS84 WGS84 positions], that is the standard for gps device.
 
*Agocontrol only manages [http://en.wikipedia.org/wiki/WGS84 WGS84 positions], that is the standard for gps device.
 
*Agocontrol uses [http://www.openlayers.org/ OpenLayers javascript library] with OpenStreetMap as image provider.
 
*Agocontrol uses [http://www.openlayers.org/ OpenLayers javascript library] with OpenStreetMap as image provider.

Latest revision as of 05:37, 14 December 2014

Contents

[edit] GpsSensor

Agocontrol is able to manage Gps sensor.

[edit] Display

GpsSensor is displayed like other sensors with a widget containing:

  • name of your sensor
  • info of last position
  • a button to open a map

[edit] Writing my own GpsSensor

add_device("<device name>", "gpssensor")

Note that gpssensor allows system to have different behaviour with your sensor, so don't change it!

  • And finally send to agocontrol your position emitting this event:

emit_event_raw(<internalid>, "event.environment.positionchanged", "map{latitude=?, longitude=?}")

[edit] Installation

  • We need the gps module to run:
apt-get install python-gps

[edit] Informations

Personal tools