cheshirekow  v0.1.0
Solver.hpp
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_HYPER_TWO_THETA_X_SOLVER_H_
27 #define MPBLOCKS_DUBINS_CURVES_EIGEN_HYPER_TWO_THETA_X_SOLVER_H_
28 
29 namespace mpblocks {
30 namespace dubins {
31 namespace curves_eigen {
32 namespace hyper {
33 namespace two_theta_x {
34 
36 template <int xSpec, int tSpec, int Variant, typename Format_t>
37 struct Solver {
38  typedef Eigen::Matrix<Format_t, 3, 1> Vector3d_t;
39  typedef Eigen::Matrix<Format_t, 2, 1> Vector2d_t;
42 
43  static Result_t solve(const Vector3d_t& q0, const Hyper_t& h,
44  const Format_t r);
45 
46  static Result_t solve_debug(const Vector3d_t& q0, const Hyper_t& h,
47  const Format_t r);
48 };
49 
50 } // namespace two_theta_x
51 } // namespace hyper
52 } // namespace curves_eigen
53 } // namespace dubins
54 } // namespace mpblocks
55 
56 #endif // MPBLOCKS_DUBINS_CURVES_EIGEN_HYPER_TWO_THETA_X_SOLVER_H_
interface for variants of solvers, default template is never instantiated
Definition: Solver.hpp:37
A hyper-rectangle in dubins space: A rectangular prism in R^3.
Definition: hyper_rect.h:44
static Result_t solve_debug(const Vector3d_t &q0, const Hyper_t &h, const Format_t r)
Encodes a dubins path primitive, which is three connected arc segments.
Definition: path.h:42
static Result_t solve(const Vector3d_t &q0, const Hyper_t &h, const Format_t r)