Gps Sensor

From ago control wiki
Revision as of 05:37, 14 December 2014 by Huh (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



Agocontrol is able to manage Gps sensor.


GpsSensor is displayed like other sensors with a widget containing:

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

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=?}")


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


Personal tools