hc_cc_state_space.hpp
Go to the documentation of this file.
1 /*********************************************************************
2 * Copyright (c) 2017 Robert Bosch GmbH.
3 * All rights reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 ***********************************************************************/
17 
18 #ifndef HC_CC_STATE_SPACE_HPP
19 #define HC_CC_STATE_SPACE_HPP
20 
21 #include <vector>
22 
26 
27 namespace steering
28 {
29 
31 {
32 public:
34  HC_CC_State_Space(double kappa, double sigma, double discretization);
35 
37  void set_filter_parameters(const Motion_Noise& motion_noise, const Measurement_Noise& measurement_noise,
38  const Controller& controller);
39 
41  virtual std::vector<Control> get_controls(const State& state1, const State& state2) const = 0;
42 
44  std::vector<State> get_path(const State& state1, const State& state2) const;
45 
47  std::vector<State_With_Covariance> get_path_with_covariance(const State_With_Covariance& state1,
48  const State& state2) const;
49 
51  std::vector<State> integrate(const State& state, const std::vector<Control>& controls) const;
52 
54  std::vector<State_With_Covariance> integrate_with_covariance(const State_With_Covariance& state,
55  const std::vector<Control>& controls) const;
56 
58  State interpolate(const State& state, const std::vector<Control>& controls, double t) const;
59 
61  inline State integrate_ODE(const State& state, const Control& control, double integration_step) const;
62 
63 protected:
65  double kappa_, sigma_;
66 
69 
72 
75 };
76 
77 } // namespace steering
78 
79 #endif
double kappa_
Curvature, sharpness of clothoid.
std::vector< State_With_Covariance > get_path_with_covariance(const State_With_Covariance &state1, const State &state2) const
Returns path including covariances from state1 to state2.
HC_CC_Circle_Param hc_cc_circle_param_
Parameters of a hc-/cc-circle.
HC_CC_State_Space(double kappa, double sigma, double discretization)
Constructor.
State interpolate(const State &state, const std::vector< Control > &controls, double t) const
Returns interpolated state at distance t in [0,1] (percentage of total path length) ...
geometry_msgs::TransformStamped t
EKF ekf_
Extended Kalman Filter for uncertainty propagation.
Parameters of the motion noise model according to the book: Probabilistic Robotics, S. Thrun and others, MIT Press, 2006, p. 127-128 and p.204-206.
Description of a path segment with its corresponding control inputs.
std::vector< State > integrate(const State &state, const std::vector< Control > &controls) const
Returns integrated states given a start state and controls.
Description of a kinematic car&#39;s state with covariance.
Parameters of the measurement noise.
Parameters of the feedback controller.
Description of a kinematic car&#39;s state.
virtual std::vector< Control > get_controls(const State &state1, const State &state2) const =0
Virtual function that returns controls of the shortest path from state1 to state2.
void set_filter_parameters(const Motion_Noise &motion_noise, const Measurement_Noise &measurement_noise, const Controller &controller)
Sets the parameters required by the filter.
std::vector< State_With_Covariance > integrate_with_covariance(const State_With_Covariance &state, const std::vector< Control > &controls) const
Returns integrated states including covariance given a start state and controls.
double discretization_
Discretization of path.
std::vector< State > get_path(const State &state1, const State &state2) const
Returns path from state1 to state2.
State integrate_ODE(const State &state, const Control &control, double integration_step) const
Returns integrated state given a start state, a control, and an integration step. ...


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