DefaultFriction.h
Go to the documentation of this file.
1 /*+-------------------------------------------------------------------------+
2  | MultiVehicle simulator (libmvsim) |
3  | |
4  | Copyright (C) 2014-2023 Jose Luis Blanco Claraco |
5  | Copyright (C) 2017 Borys Tymchenko (Odessa Polytechnic University) |
6  | Distributed under 3-clause BSD License |
7  | See COPYING |
8  +-------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
15 
16 #include <vector>
17 
18 namespace mvsim
19 {
24 {
26  public:
28  VehicleBase& my_vehicle, const rapidxml::xml_node<char>* node);
29 
30  // See docs in base class.
31  virtual mrpt::math::TVector2D evaluate_friction(
32  const FrictionBase::TFrictionInput& input) const override;
33 
34  private:
35  double mu_;
36  double C_damping_;
37 
38  public:
40  {"mu", {"%lf", &mu_}}, {"C_damping", {"%lf", &C_damping_}}};
41 };
42 } // namespace mvsim
double mu_
friction coeficient (non-dimensional)
DefaultFriction(VehicleBase &my_vehicle, const rapidxml::xml_node< char > *node)
std::map< std::string, TParamEntry > TParameterDefinitions
double C_damping_
For wheels "internal friction" (N*m*s/rad)
virtual mrpt::math::TVector2D evaluate_friction(const FrictionBase::TFrictionInput &input) const override
#define DECLARES_REGISTER_FRICTION(CLASS_NAME)
Definition: FrictionBase.h:79
const TParameterDefinitions params_


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:19