[Opensim-dev] interfaces to opensim for sensor network data
Kevin Cozens
kevin at ve3syb.ca
Wed Nov 24 17:26:13 UTC 2010
CJ Davies wrote:
> Can anybody link me to any information on what available interfaces
> there are for presenting the sensor data to opensim?
Sounds like an interesting and fun project.
The easiest way to get the sensor data in to opensim is to have an inworld
script that polls an external webserver. The polling rate you would need would
depend on how quickly you want the virtual world to respond to events in the
real world.
A similar but slightly better way to do this is to use an inworld script that
listens for data via an http connection. There are a couple of advantages to
this. The inworld scripts will be mostly idle (minimizing their impact on the
server load) while waiting for data vs. constantly polling for data and having
to parse the data to see what might have changed. It would also make the
inworld scripts more responsive to real world events. As soon as new sensor
data was available it can be pushed to opensim and the waiting scripts would
"wake up" to process the incoming data.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
More information about the Opensim-dev
mailing list