Resource-Aware Programming for Robotic Vision

Resource-Aware Programming for Robotic Vision

Resource-Aware Programming for Robotic Vision Johny Paul, Walter Stechele Manfred Krohnert,¨ Tamim Asfour Institute for Integrated Systems Institute for Anthropomatics Technical University of Munich, Germany Karlsruhe Institute of Technology, Germany fJohny.Paul, [email protected] fKroehnert, [email protected] Abstract— Humanoid robots are designed to operate in human each dedicated to different tasks like computer vision, low- centered environments. They face changing, dynamic environ- level control, high-level control, and speech processing [1]. ments in which they need to fulfill a multitude of challenging All presented robots are autonomous as they do not rely tasks. Such tasks differ in complexity, resource requirements, and execution time. Latest computer architectures of humanoid on external resources while operating. Most systems use robots consist of several industrial PCs containing single- or dual- standard PC components for computation while sometimes core processors. According to the SIA roadmap for semiconduc- utilizing dedicated hardware for specialized tasks such as tors, many-core chips with hundreds to thousands of cores are DSPs for sound recognition. On these mostly homogeneous expected to be available in the next decade. Utilizing the full architectures almost all tasks share the same set of resources. power of a chip with huge amounts of resources requires new computing paradigms and methodologies. However, one PC is sometimes dedicated to speech recognition In this paper, we analyze a resource-aware computing method- and synthesis. ology named Invasive Computing, to address these challenges. The benefits and limitations of the new programming model is analyzed using two widely used computer vision algorithms, the Harris Corner detector and SIFT (Scale Invariant Feature Transform) feature matching. The result indicate that the new programming model together with the extensions within the application layer, makes them highly adaptable; leading to better quality in the results obtained. I. INTRODUCTION Humanoid robots have to fulfill many different tasks during operation including recognizing objects, navigating towards a goal region, avoiding collisions, maintaining balance, planning motions, having conversations, and many more. Additionally they have to work in highly dynamic and ever changing human centered environments. Taking a closer look, all of these Fig. 1. Humanoid Robot ARMAR-III tasks have different requirements depending on their objec- tives. Some tasks are computationally or data-flow intensive B. Challenges and difficulties on Existing Hardware and some are control flow intensive. Some are continuously Robot-specific tasks need to be executed on the hardware running at a specific frequency while others are doing their built into the robot. Timely execution of tasks is guaranteed work asynchronously triggered by external events. as the underlying hardware is selected to be able to cope with worst case requirements. A. Conventional Architectures used on Humanoid Robots In the past, Graphics Processing Units (GPU) and Field Current humanoid robot control architectures share similar Programmable Gate Arrays (FPGA) have offered significant hardware setups consisting of one or more industrial PCs speedup to computer vision applications. In [3], [10], var- equipped with single- or dual-core processors. These architec- ious case studies have been presented comparing GPU vs. tures are quasi-parallel in the sense that the applications are FPGA implementations. There seems to be no “one fits all” mapped statically to various compute units. The architecture solution, but the benefits and drawbacks are manifold: GPUs of the humanoid robot Asimo uses two PCs, a control and benefit from higher clock frequencies than FPGAs, due to planning processor plus an additional digital signal processor their custom layout. On the other hand, programming GPUs (DSP) for sound processing [15]. Similarly, two processor efficiently can be as tedious as hardware development in boards (one for realtime-control, one for non-realtime tasks) VHDL and their massive power consumption prevent them are used by the humanoid robots HRP-2 and HRP-4C [8], from being used on mobile robots. FPGAs offer a higher [9]. In contrast, there are five industrial PCs and PC/104 degree of freedom in optimizing memory architectures, data systems built into the humanoid robot ARMAR-III (Fig. 1) types and pipeline structures at lower power consumption. Copyright is held by the author/owner(s). 1st Workshop on Resource Awareness and Adaptivity in Multi-Core 8 Computing (Racing 2014), May 29–30, 2014, Paderborn, Germany. However, programming FPGAs require HDL experience, and 0 to 430 milliseconds, based on the load condition. A lack of FPGA designs consume more time during development and sufficient resources leads to very high processing intervals or testing. frame drops (a processing interval of zero represents a frame The use of many-core processors can mitigate some of drop). The number of frames dropped during this evaluation is the above mentioned problems on account of their immense as high as 20% and the worst-case latency increased by 4.3x computational power assembled in a compact design. Embrac- (100 milliseconds to 430 milliseconds). Frame drops reduce ing emerging many-core technologies like Intels Single-Chip the quality of the results and the robot may lose track of the Cloud Computer (SCC) [7] or Tileras Tile64 [2] seems evident. object if too many consecutive frames are dropped. Once many-core technologies become a de-facto standard 16 the question arises of how to handle such large amounts of resources and how to program these systems efficiently. A 12 common practice as of now is to do static resource allocation 8 at compile time as described in [12]. However, static alloca- Required Core count Core tion schemes have issues with dynamic scenarios. Often, the 4 Available changing requirements lead to under-utilization since resources 0 1 9 17 25 33 41 49 57 65 73 81 89 97 are often occupied without performing any useful work. 105 113 121 129 137 145 153 161 169 177 185 193 On the other hand, dynamic scheduling can improve re- Frame No. source utilization. However, the available resources on a many- Fig. 2. Resource allocation scheme core chip (processing elements (PEs), memories, intercon- nects, etc.) have to be shared among various applications running concurrently, which leads to unpredictable execution 500 time or frame drops for vision applications. 400 This paper is organized as follows. Section II describes 300 some of the challenges faced by vision applications on a 200 Expected Observed conventional many-core system using the example of a widely time Execution 100 0 used image processing algorithm called Harris Corner detector. 1 9 17 25 33 41 49 57 65 73 81 89 97 105 113 121 129 137 145 153 161 169 177 185 193 In Section III we introduce the concepts of resource-aware Frame no. computing including proposed hardware units. Section IV presents our evaluation and results from the resource-aware Fig. 3. Variation in processing interval based on available resources model using two different applications, Harris Corner and We attempt to tackle some of these issues though a SIFT (Scale Invariant Feature Transform) feature matching. novel resource-aware programming methodology called In- Finally Section V concludes the paper. vasive Computing. We envision that the use of Invasive II. PROBLEM DESCRIPTION Computing mechanisms into future computing paradigms will significantly contribute to solve this problem. This work also Corner detection is often employed as the first step in describes how to distribute the huge workload on the massively computer-vision applications with real-time video input. parallel PEs for best performance, and how to generate results Hence, the application has to maintain a steady throughput on time (avoiding frame drops) even under varying load and good response time to ensure quality results. However, conditions. the presence of other high-priority tasks may alter the behavior of the corner-detection algorithm. To evaluate such III. INVASIVE COMPUTING a dynamically changing situation, we analyzed the behavior Invasive Computing as a synonym for resource-aware com- of the conventional Harris detector on a many-core processor puting was first introduced in 2008 [17]. One major goal of with 32 PEs. A video input with 640 × 480 pixels at 10 the project is to investigate more elegant and efficient ways of frames per second was used, with the test running for 20 dealing with massive parallelism within the future many-core seconds. To evaluate the impact of other applications running platforms. In this section we describe the nature and features concurrently on the many-core system, applications like audio of an Invasive Computing platform and outline the differences processing, motor control, etc. were used. These applications and advantages compared to other available platforms. create dynamically changing load on the processor based on what the robot is doing at that point in time. For instance, A. Programming Model for Invasive Computing the speech-recognition application is activated when the user Invasive Computing is about managing parallelism in and speaks to the robot. between programs on a Multi-Processor System on Chip (MPSoC). This is achieved by empowering applications to Sharing of available resources among various applications manage processing-, memory-, or communication-resources running concurrently, resulted

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us