cheshirekow  v0.1.0
funcs.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_CURVES_FUNCS_H_
28 #define MPBLOCKS_DUBINS_CURVES_FUNCS_H_
29 
30 #ifndef __host__
31 #define __host__
32 #endif
33 
34 #ifndef __device__
35 #define __device__
36 #endif
37 
38 namespace mpblocks {
39 namespace dubins {
40 
42 template <typename Format_t>
44 Format_t clampRadian( Format_t a );
45 
47 template <typename Format_t>
49 Format_t ccwArc( Format_t a, Format_t b );
50 
52 template <typename Format_t>
54 Format_t leftArc( Format_t a, Format_t b );
55 
57 template <typename Format_t>
59 Format_t cwArc( Format_t a, Format_t b);
60 
62 template <typename Format_t>
64 Format_t rightArc( Format_t a, Format_t b);
65 
66 } // dubins
67 } // mpblocks
68 
69 #endif // MPBLOCKS_DUBINS_CURVES_FUNCS_H_
__host__ __device__ Format_t cwArc(Format_t a, Format_t b)
returns the clockwise (right) distance from a to b
Definition: funcs.hpp:72
#define __device__
Definition: funcs.h:35
__host__ __device__ Format_t ccwArc(Format_t a, Format_t b)
returns the counter clockwise (left) distance from a to b
Definition: funcs.hpp:51
__host__ __device__ Format_t clampRadian(Format_t a)
wraps the input onto [-pi,pi]
Definition: funcs.hpp:37
__host__ __device__ Format_t rightArc(Format_t a, Format_t b)
returns the clockwise (right) distance from a to b
Definition: funcs.hpp:85
#define __host__
Definition: funcs.h:31
__host__ __device__ Format_t leftArc(Format_t a, Format_t b)
returns the counter clockwise (left) distance from a to b
Definition: funcs.hpp:64