0
50
100
150
200
250
1 2 3 4 5
Dropped Frames (thousands)
Number of Blur Operations
Shared Memory
Local TCP/IP
Multicast
Figure 3: Frame drops in pipeline.
the pipeline consists of more than four blur processes.
At that point, the processor is overloaded and frames
are dropped as a result, leading to lower frame rates
observed by the receiver. Shared memory performs
slightly better due to lower communication overhead.
Second, turning to the performance of multicast,
Figure 2 shows that the processing pipeline achieves
a much lower frame rate, ranging from 25 to 8 frames
per second. The reason for the lower frame rate is
clearly visible in Figure 3, which shows the number
of frames that are dropped for each configuration. As
Figure 3 shows, even with only one blur operator, ev-
ery other frame is dropped with the multicast mecha-
nism. The frame rate observed by the receiver is thus
only half the frame rate of the producer. As more
blur operators are added, more frames are dropped,
explaining the lower frame rates seen in Figure 2.
Turning to latency, Figure 4 shows that, as ex-
pected, latency of the multicast transport mechanism
is very high and constantly increasing with pipeline
length as frames can be dropped anywhere in the
pipeline. For the other two transport mechanisms, la-
tency is relatively low until the pipeline consists of
five blur operators. At that point, the CPU is satu-
rated and scheduling conflicts occur. Again, latency is
significantly lower using shared memory than TCP/IP
due to the lower communication overhead.
Further experiments have shown that the typi-
cal overhead of YARP communcations will be about
50%, which is a reasonable overhead for the conve-
nience of using YARP (Stefánsson et al., 2008).
4 CONCLUSIONS
We have described our efforts towards a flexible com-
puter vision infrastructure based on the YARP toolkit.
We have found YARP easy to use, as it greatly sim-
plifies making the infrastructure flexible towards sen-
sors, hardware, processing, and communication re-
0
50
100
150
200
1 2 3 4 5
Latency (ms)
Number of Blur Operations
Shared Memory
Local TCP/IP
Multicast
Figure 4: Latency of received frames.
quirements, compared to starting from scratch. Our
experiments show that the overhead is a reasonable
tradeoff for the convenience.
REFERENCES
Fitzpatrick, P., Metta, G., and Natale, L. (2008). Towards
long-lived robot genes. Robotics and Autonomous
Systems, 56(1):29–45.
List, T., Bins, J., Fisher, R. B., Tweed, D., and Thórisson,
K. R. (2005). Two approaches to a plug-and-play vi-
sion architecture - CAVIAR and Psyclone. In Work-
shop on Modular Construction of Human-Like Intelli-
gence, Pittsburgh, PA, USA.
Lowe, D. G. (2004). Distinctive image features from scale-
invariant keypoints. International Journal of Com-
puter Vision, 60(2):91–110.
Metta, G., Fitzpatrick, P., and Natale, L. (2006). YARP:
Yet another robot platform. International Journal of
Advanced Robotic Systems, 3(1):43–48.
Ng-Thow-Hing, V., List, T., Thórisson, K. R., Lim, J., and
Wormer, J. (2007). Design and evaluation of commu-
nication middleware in a distributed humanoid robot
architecture. In Workshop on Measures and Proce-
dures for the Evaluation of Robot Architectures and
Middleware, San Diego, CA, USA.
Stefánsson, S. F., Jónsson, B. Þ., and Thórisson, K. R.
(2008). Evaluation of a YARP-based architectural
framework for robotic vision applications. Technical
Report RUTR-CS08004, Reykjavík University School
of Computer Science.
Thórisson, K. R., List, T., Pennock, C., and DiPirro, J.
(2005). Whiteboards: Scheduling blackboards for se-
mantic routing of messages & streams. In Workshop
on Modular Construction of Human-Like Intelligence,
Pittsburgh, PA, USA.
Thórisson, K. R., List, T., Pennock, C., and DiPirro, J.
(2007). OpenAIR 1.0 specification. Technical Re-
port RUTR-CS07005, Reykjavík University School of
Computer Science.
Tweed, D., Fang, W., Fisher, R., Bins, J., and List, T.
(2005). Exploring techniques for behaviour recogni-
tion via the CAVIAR modular vision framework. In
Proc. HAREM Workshop, Oxford, England.
VISAPP 2009 - International Conference on Computer Vision Theory and Applications
68