cheshirekow  v0.1.0
kd_tree.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Josh Bialkowski (jbialk@mit.edu)
3  *
4  * This file is part of mpblocks.
5  *
6  * mpblocks is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * mpblocks is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with mpblocks. If not, see <http://www.gnu.org/licenses/>.
18  */
27 #ifndef MPBLOCKS_DUBINS_KDTREE_H_
28 #define MPBLOCKS_DUBINS_KDTREE_H_
29 
30 #include <mpblocks/kd_tree.h>
31 
32 namespace mpblocks {
33 namespace dubins {
34 namespace kd_tree {
35 
36 template <typename Format>
37 struct Traits
38 {
39  typedef Format Format_t;
40  static const unsigned NDim = 3;
41 
42  struct HyperRect:
43  public curves_eigen::hyper::HyperRect<Format>
44  {
46 
47  using Base_t::minExt;
48  using Base_t::maxExt;
49 
50  HyperRect();
51 
53  Format_t measure();
54  };
55 
56  struct Node:
57  public mpblocks::kd_tree::Node<Traits>
58  {
59  unsigned int idx;
60  };
61 
62 };
63 
64 
65 } // namespace kd_tree
66 } // namespace dubins
67 } // namespace mpblocks
68 
69 
70 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 
89 #endif // KDTREE_H_
curves_eigen::hyper::HyperRect< Format > Base_t
Definition: kd_tree.h:45
A hyper-rectangle in dubins space: A rectangular prism in R^3.
Definition: hyper_rect.h:44
Format_t measure()
return the measure of the hypercube
Definition: kd_tree.hpp:49
Base class for nodes in the kd tree.
Definition: Node.h:58
static const unsigned NDim
Definition: kd_tree.h:40