cc00_dubins_state_space.hpp
Go to the documentation of this file.
1 /*********************************************************************
2 * Copyright (c) 2017 - for information on the respective copyright
3 * owner see the NOTICE file and/or the repository
4 *
5 * https://github.com/hbanzhaf/steering_functions.git
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16 * implied. See the License for the specific language governing
17 * permissions and limitations under the License.
18 
19 * This source code is derived from Continuous Curvature (CC) Steer.
20 * Copyright (c) 2016, Thierry Fraichard and Institut national de
21 * recherche en informatique et en automatique (Inria), licensed under
22 * the BSD license, cf. 3rd-party-licenses.txt file in the root
23 * directory of this source tree.
24 **********************************************************************/
25 
26 #ifndef CC00_DUBINS_STATE_SPACE_HPP
27 #define CC00_DUBINS_STATE_SPACE_HPP
28 
29 #include <memory>
30 #include <vector>
31 
36 
37 namespace steering
38 {
39 
48 {
49 public:
51  CC00_Dubins_State_Space(double kappa, double sigma, double discretization = 0.1, bool forwards = true);
52 
55 
58 
60  CC_Dubins_Path* cc00_dubins(const State& state1, const State& state2) const;
61 
63  double get_distance(const State& state1, const State& state2) const;
64 
66  std::vector<Control> get_controls(const State& state1, const State& state2) const;
67 
68 private:
70  bool forwards_;
71 
73  class CC00_Dubins;
74 
76  std::unique_ptr<CC00_Dubins> cc00_dubins_;
77 };
78 
79 } // namespace steering
80 
81 #endif
CC_Dubins_Path * cc00_circles_dubins_path(const HC_CC_Circle &c1, const HC_CC_Circle &c2) const
Returns a sequence of turns and straight lines connecting the two circles c1 and c2.
std::vector< Control > get_controls(const State &state1, const State &state2) const
Returns controls of the shortest path from state1 to state2.
std::unique_ptr< CC00_Dubins > cc00_dubins_
Pimpl Idiom: unique pointer on class with families.
double get_distance(const State &state1, const State &state2) const
Returns shortest path length from state1 to state2.
Description of a kinematic car&#39;s state.
CC_Dubins_Path * cc00_dubins(const State &state1, const State &state2) const
Returns a sequence of turns and straight lines connecting a start and an end configuration.
CC00_Dubins_State_Space(double kappa, double sigma, double discretization=0.1, bool forwards=true)
Constructor.
An implementation of continuous curvature (CC) steer for a Dubins car with zero curvature at the star...


steering_functions
Author(s): Holger Banzhaf
autogenerated on Thu Aug 18 2022 02:09:46