cheshirekow  v0.1.0
opposite.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  */
26 #ifndef MPBLOCKS_DUBINS_CURVES_EIGEN_OPPOSITE_H_
27 #define MPBLOCKS_DUBINS_CURVES_EIGEN_OPPOSITE_H_
28 
29 namespace mpblocks {
30 namespace dubins {
31 namespace curves_eigen {
32 
34 template <class Arc1>
35 struct Opposite{};
36 
37 template <> struct Opposite<L>{ typedef R type; };
38 template <> struct Opposite<R>{ typedef L type; };
39 
40 } // curves_eigen
41 } // dubins
42 } // mpblocks
43 
44 #endif // MPBLOCKS_DUBINS_CURVES_EIGEN_OPPOSITE_H_
provides opposite arc type for given template parameter
Definition: opposite.h:35
empty struct used to template "right turn" primitive
Definition: types.h:37
empty struct used to template "left turn" primitive
Definition: types.h:34