Download the delta object tracking and localization algorithm for sensor

Transcript
3.4
3.4.1
Own extensions to the simulation environment
Simulating a moving target object
To simulate the object that moves through our sensor network and has to be tracked, we wrote a
new compound module EventAndMobilityCompoundHost. This module has the task of moving
through the simulated network and emitting a configurable sensor signature that can be sensed
by the sensor nodes.
Figure 3.3: Inside the compound module EventAndMobilityCompoundHost, used to simulate moving
objects. It includes the simple modules BasicEvent, Mobility and Blackboard
The compound module EventAndMobilityCompoundHost consists of three simple modules,
as seen in Figure 3.3: a Blackboard module, a Mobility module and a BasicEvent module. The
Blackboard module is provided by the Mobility Framework. The Mobility module publishes
its position information there, the BasicEvent module frequently requests this information. The
Mobility module makes the simulated object move through the sensor network. In the file EventAndMobilityCompoundHost.ned we do not hard-wire which Mobility module should be used,
but just declare it has to be a subclass of BasicMobility (so it can be one of the standard or one
of our custom Mobility modules):
module EventAndMobilityCompoundHost
parameters:
mobilityType: string;
submodules:
event: BasicEvent;
display: "p=70,70;i=block/star";
mobility: mobilityType like BasicMobility;
display: "p=130,140;i=cogwheel2";
blackboard: Blackboard;
display: "p=130,70;b=25,25;o=black";
endmodule
The parameter mobilityType will specify which subclass to use, we usually set it inside the
omnetpp.ini configuration file. In following example section of omnetpp.ini, we configure the
object to move according to our custom curve mobility model:
basicSim.eventAndMobilityCompoundHost.mobilityType="CurveMobility"
29