DefaultFriction.h
Go to the documentation of this file.
1 /*+-------------------------------------------------------------------------+
2  | MultiVehicle simulator (libmvsim) |
3  | |
4  | Copyright (C) 2014-2020 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 void evaluate_friction(
33  mrpt::math::TPoint2D& out_result_force_local) const override;
34 
35  private:
36  double m_mu;
37  double m_C_damping;
38 
39  public:
41  {"mu", {"%lf", &m_mu}}, {"C_damping", {"%lf", &m_C_damping}}};
42 };
43 } // namespace mvsim
const TParameterDefinitions m_params
DefaultFriction(VehicleBase &my_vehicle, const rapidxml::xml_node< char > *node)
std::map< std::string, TParamEntry > TParameterDefinitions
GLenum GLenum GLenum input
double m_mu
friction coeficient (non-dimensional)
#define DECLARES_REGISTER_FRICTION(CLASS_NAME)
Definition: FrictionBase.h:79
virtual void evaluate_friction(const FrictionBase::TFrictionInput &input, mrpt::math::TPoint2D &out_result_force_local) const override
double m_C_damping
For wheels "internal friction" (N*m*s/rad)


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:51