Improving Motion Planning Algorithms by Efficient Nearest-Neighbor

Improving Motion Planning Algorithms by Efficient Nearest-Neighbor

IEEE TRANSACTIONS ON ROBOTICS / SHORT PAPER 1 Improving Motion Planning Algorithms by Efficient Nearest-Neighbor Searching Anna Yershova, Steven M. LaValle Abstract— The cost of nearest-neighbor calls is one of the bot- tlenecks in the performance of sampling-based motion planning algorithms. Therefore, it is crucial to develop efficient techniques for nearest-neighbor searching in configuration spaces arising in motion planning. In this paper we present and implement an algorithm for performing nearest-neighbor queries in Cartesian products of R, S1 and RP 3, the most common topological spaces in the context of motion planning. Our approach extends the cylinder torus projective plane algorithm based on kd-trees, called ANN, developed by Arya and Mount for Euclidean spaces. We argue the correctness of the Fig. 1. Some 2D manifolds obtained by identifications of the boundary points R2 algorithm and illustrate substantial performance improvement of subsets of . Arrows on a pair of opposite edges indicate identification of the opposite points on the edges. If arrows are drawn in opposite directions, over brute-force approach and several existing nearest-neighbor then there is a twist in the identification. packages developed for general metric spaces. Our experimental results demonstrate a clear advantage of using the proposed method for both probabilistic roadmaps (PRMs) and Rapidly- exploring Random Trees (RRTs). are developed uniquely for Euclidean spaces and cannot be Index Terms— Sampling-based motion planning, nearest- applied directly to path planning algorithms because of the neighbor searching, kd-trees, configuration space, RRTs, PRMs. topologies of configuration spaces. The topologies that usually arise in the context of motion planning are Cartesian products of R, S1, and RP 3, real projective space, for which metric I. INTRODUCTION information must be appropriately processed by any data EAREST-neighbor searching is a fundamental problem structure that performs correct nearest-neighbor computations. N in many applications, such as pattern recognition, statis- Several other nearest-neighbor packages exist, such as sb(S) tics, and machine learning. It is also an important component [9], and cover trees [7], that answer nearest-neighbor queries in several path planning algorithms. Probabilistic roadmap in general metric spaces. These packages use the metric (PRM) approaches [2], [17], build a graph of collision-free function provided by the user as a “black box” for building paths that attempts to capture the connectivity of the config- a data structure based only on metric evaluations between the uration space. The vertices represent configurations that are data points. Since any valid metric can be provided as the generated using random sampling, and attempts are made input, these methods are very general and usually introduce to connect each vertex to nearby vertices. Some roadmaps high computational overhead for Euclidean spaces and simple contain thousands of vertices, which can lead to substantial topological spaces that arise in motion planning. computation time for determining nearby vertices in some Kd-trees [13], [28], [4] are well known for their good applications. Approaches based on Rapidly-exploring Random performance on Euclidean data sets. They usually outperform Trees (RRTs) [20], [22], [24] rely even more heavily on other approaches in practice, except in rare pathological cases. nearest neighbors. An RRT is a tree of paths that is grown In this paper, we show how the kd-tree-based nearest-neighbor incrementally. In each iteration, a random configuration is algorithm and part of the ANN package of Arya and Mount chosen, and the RRT vertex that is closest (with respect to [26] can be extended to handle topologies arising in motion a predefined metric) is selected for expansion. An attempt is planning. The resulting method retains the performance ben- made to connect the RRT vertex to the randomly-chosen state. efits of kd-trees by introducing a very little computational An approach that efficiently finds nearest neighbors can overhead for handling the appropriate constraints induced by dramatically improve the performance of these path planners. the metric and topology of the configuration space. First, we Several packages exist, such as ANN ([26], U. of Maryland), formulate the problem and describe the appropriate metric Ranger (SUNY Stony Brook), which are designed for efficient spaces in Section II. A literature overview of existing tech- nearest-neighbor generation in Rd. These techniques, however, niques for nearest-neighbor searching is covered in Section III. We then present our algorithm and prove the correctness of the Manuscript received January 20, 2002; revised November 18, 2002. This approach in Section IV. We demonstrate the efficiency of the work was supported in part by NSF CAREER Award IRI-9875304, NSF ANI- 0208891, and NSF IIS-0118146. algorithm empirically in Section V. Our experiments show the Anna Yershova (corresponding author) is with the Department of Com- performance improvement of the proposed algorithm over us- puter Science, University of Illinois, Urbana, IL 61801 USA (email: yer- ing linear-time naive nearest-neighbor computations, the sb(S) [email protected]). Steven M. LaValle is with the Department of Computer Science, University library, and the cover-tree library. The speedup is a few orders of Illinois, Urbana, IL 61801 USA (email: [email protected]). of magnitude in some cases. We also present experiments that IEEE TRANSACTIONS ON ROBOTICS / SHORT PAPER 2 show substantial performance improvement in the PRM and in which (x · y) denotes the dot product for vectors in R4. RRT methods applied to difficult path planning examples. We Note: Sometimes Euler angles are used for repre- have implemented the proposed method as a software package senting 3D rigid rotations instead of quaternions. In publicly available at [29]. this case, each rotation is represented as a vector (x1; x2; x3); xi 2 [−π; π]= − π ∼ π: Since the topology 1 1 1 II. PROBLEM FORMULATION of the space is S × S × S , the techniques described in the following sections can be used for Euler angles representation The configuration space, C, which arises in motion planning as well as quaternions. problems is usually a non-Euclidean manifold or a collection 4) Cartesian products of the spaces above: Given two of manifolds. A 2D rigid body freely translating and rotating metric spaces, (T ; dist ) and (T ; dist ), the weighted in the plane has the configuration space C = R2 ×S1, in which 1 T1 2 T2 metric for two points, q; p, in the Cartesian product T × T circle S1 represents the 2D rotations. 3D rigid body rotations 1 2 is defined as lead to three-dimensional real projective space configurations, RP 3. Toroidal manifolds arise as the configuration spaces 2 2 distT1×T2 (q; p) = µT1 distT1 (q; p) + µT2 distT2 (q; p); of revolute joints of a manipulator. In the case of multiple q bodies the resulting configuration space is a Cartesian product in which the weights, µT1 and µT2 , are arbitrary nonzero real of the copies of R, S1, and P 3. When several of the joints constants. of a manipulator form closed loops, the configuration space is usually a collection of submanifolds of one of the above B. Problem Formulation configuration spaces (see [23] for more details). Consider one of the metric spaces described in Section II- Many of these d-dimensional configuration spaces can be 1 A, T = T1 × · · · × Tm, in which each Ti is one of R, S or Rd represented by defining a subset of , and identifying appro- RP 3. Consider the weighted metric defined on this manifold, priate pairs of boundary points to obtain the desired topology. distT : T × T ! R. Suppose that a set of n data points, S, is For example, several two-dimensional manifolds can be ob- a subset of T . The problem is: given any query point q 2 T , tained by identifying points on the unit square or unit circle efficiently report the point p 2 S that is closest to q. in the plane, as shown in Figure 1. When motion planning is Note that the brute-force computations of all the distances performed on such configuration spaces, an appropriate metric is one way of finding a correct nearest neighbor. However, needs to be defined, and the search for nearest neighbors our goal is to achieve significantly faster running times. We must be performed with respect to the metric and topology allow some preprocessing time for organizing the data points of the space. In this section we describe the metrics that are in a data structure. In return, we expect that the answer to the used for the most common configuration spaces in motion nearest-neighbor query is found significantly faster than the planning, and we formulate the nearest-neighbor problem for brute-force computations. these spaces. III. NEAREST-NEIGHBOR SEARCHING OVERVIEW A. Common Metric Spaces There has been a significant interest in nearest-neighbor Throughout this paper we consider the following metric and related problems over the last couple of decades. For spaces. Euclidean data sets kd-tree-based methods proved to be one 1) Euclidean one-space: it arises from rigid translations, of the most effective in practice. The kd-tree data structure is and is represented by (0; 1) ⊂ R. The metric for two points based on recursively subdividing the rectangle enclosing the p; q 2 R1 is defined as data points into subrectangles using alternating axis-aligned hyperplanes. Given the appropriate distance measure between distR(q; p) = jq − pj: points and rectangles in the space, kd-trees allow eliminate 2) Circle, S1: it can be represented by S1 = [0; 1]=0 ∼ 1, some of the points in the data set from the search during a unit interval with identified endpoints. This configuration the query phase. Given a query point, q, it may be possible space arises from 2D rigid rotations.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 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