cheshirekow  v0.1.0
solver.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_SOLVER_H_
27 #define MPBLOCKS_DUBINS_CURVES_EIGEN_SOLVER_H_
28 
31 
32 namespace mpblocks {
33 namespace dubins {
34 namespace curves_eigen {
35 
38 template <SolutionId Id, typename Format_t>
39 struct Solver
40 {
41  typedef Eigen::Matrix<Format_t,3,1> Vector3d_t;
42  typedef Eigen::Matrix<Format_t,2,1> Vector2d_t;
44 
45  static Result_t solve(
46  const Vector3d_t& q0,
47  const Vector3d_t& q1,
48  const Format_t r );
49 };
50 
51 template <typename Format_t>
53  const Eigen::Matrix<Format_t,3,1>& q0,
54  const Eigen::Matrix<Format_t,3,1>& q1,
55  const Format_t r );
56 
57 
58 template <typename Format_t >
60  int solver,
61  const Eigen::Matrix<Format_t,3,1>& q0,
62  const Eigen::Matrix<Format_t,3,1>& q1,
63  const Format_t r );
64 
65 } // curves_eigen
66 } // dubins
67 } // mpblocks
68 
69 #endif // MPBLOCKS_DUBINS_CURVES_EIGEN_SOLVER_H_
Eigen::Matrix< Format_t, 3, 1 > Vector3d_t
Definition: solver.h:41
Eigen::Matrix< Format_t, 2, 1 > Vector2d_t
Definition: solver.h:42
static Result_t solve(const Vector3d_t &q0, const Vector3d_t &q1, const Format_t r)
Path< Format_t > solve_specific(int solver, const Eigen::Matrix< Format_t, 3, 1 > &q0, const Eigen::Matrix< Format_t, 3, 1 > &q1, const Format_t r)
Definition: solver.hpp:83
interface for different solutions, this is specialized for each Id in the SolutionId enum ...
Definition: solver.h:39
Path< Format_t > solve(const Eigen::Matrix< Format_t, 3, 1 > &q0, const Eigen::Matrix< Format_t, 3, 1 > &q1, const Format_t r)
Definition: solver.hpp:76
Encodes a dubins path primitive, which is three connected arc segments.
Definition: path.h:42