iCub-main
|
This module expects a template from the following port /templatePFTracker/template/image:i in order to commence tracking.
This module expects a template from the following port /templatePFTracker/template/image:i in order to commence tracking.
This is a simple single-object tracker that uses a color histogram-based observation model. Particle filtering is a Monte Carlo sampling approach to Bayesian filtering.The particle filtering algorithm maintains a probability distribution over the state of the system it is monitoring, in this case, the state – location, scale, etc. – of the object being tracked. Particle filtering represents the distribution as a set of weighted samples, or particles. Each particle describes one possible location of the object being tracked. The set of particles contains more weight at locations where the object being tracked is more likely to be. The most probable state of the object is determined by finding the location in the particle filtering distribution with the highest weight.
YARP libraries and OpenCV
Command-line Parameters
The following key-value pairs can be specified as command-line parameters by prefixing –
to the key (e.g. –from
file.ini. The value part can be changed to suit your needs; the default values are shown below.
from
templatePFTracker.ini
context
particleFiltering
$ICUB_ROOT/icub/app
to the configuration filename
templatePFTracker
Configuration File Parameters
The following key-value pairs can be specified as parameters in the configuration file (they can also be specified as command-line parameters if you so wish). The value part can be changed to suit your needs; the default values are shown below.
inputPortNameTemp
/templatePFTracker/template/image
:i /templatePFTracker
or whatever else is specifed by the name parameterinputPortNameLeft
/templatePFTracker/left/image
:i /templatePFTracker
or whatever else is specifed by the name parameterinputPortNameRight
/templatePFTracker/right/image
:i /templatePFTracker
or whatever else is specifed by the name parameteroutputPortNameLeft
/templatePFTracker/left/image
:o /templatePFTracker
or whatever else is specifed by the name parameteroutputPortNameRight
/templatePFTracker/right/image
:o
specifies the output port name (this string will be prefixed by /templatePFTracker
or whatever else is specifed by the name parameter
outputPortNameLeftBlob
/templatePFTracker/leftblob/image
:o
specifies the output port name (this string will be prefixed by /templatePFTracker
or whatever else is specifed by the name parameter
outputPortNameLeftBlob
/templatePFTracker/rightblob/image
:o /templatePFTracker
or whatever else is specifed by the name parameteroutputPortNameTarget
/templatePFTracker/target
:o /templatePFTracker
or whatever else is specifed by the name parameter Sends a Bottle list containing info on the tracking process: cog.x + cog.y + boundingBox.topLeft.x + boundingBox.topLeft.yInput ports
/templatePFTracker
This port is used to change the parameters of the module at run time or stop the module.
The following commands are available
help
quit
Note that the name of this port mirrors whatever is provided by the –name
parameter value The port is attached to the terminal so that you can type in commands and receive replies. The port can be used by other modules but also interactively by a user through the yarp rpc directive, viz.: yarp
rpc
/yuvProc
This opens a connection from a terminal to the port and allows the user to then type in commands and receive replies.
/templatePFTracker/template/image
:i /templatePFTracker/left/image
:i /templatePFTracker/right/image
:i /templatePFTracker
/templatePFTracker/left/image
:o /templatePFTracker/right/image
:o /templatePFTracker/leftblob/image
:o /templatePFTracker/rightblob/image
:o /templatePFTracker/target
:o None
None
Linux: Ubuntu 9.10 and Debian Stable
templatePFTracker –name tracker –context templatePFTracker –from templatePFTracker.ini
Copyright (C) 2009 RobotCub Consortium
CopyPolicy: Released under the terms of the GNU GPL v2.0.