MVSim
Lightweight simulator for 2.5D vehicles and robots
WardIagnemmaFriction.h
1 /*+-------------------------------------------------------------------------+
2  | MultiVehicle simulator (libmvsim) |
3  | |
4  | Copyright (C) 2017 Borys Tymchenko |
5  | Odessa National Polytechnic University |
6  | Distributed under 3-clause BSD License |
7  | See COPYING |
8  +-------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
12 #include <box2d/b2_friction_joint.h>
13 #include <mvsim/FrictionModels/FrictionBase.h>
14 
15 #include <vector>
16 
17 namespace mvsim
18 {
28 {
29  DECLARES_REGISTER_FRICTION(WardIagnemmaFriction)
30  public:
32 
33  // See docs in base class.
34  virtual mrpt::math::TVector2D evaluate_friction(
35  const FrictionBase::TFrictionInput& input) const override;
36 
37  private:
38  double mu_ = 0.8;
39  double C_damping_ = 0.01;
40  double C_rr_ = 0.0;
42  double A_roll_ = 50.0, R1_ = 0.0075, R2_ = 0.02;
43 };
44 } // namespace mvsim
Definition: FrictionBase.h:29
Definition: VehicleBase.h:44
Definition: WardIagnemmaFriction.h:28
virtual mrpt::math::TVector2D evaluate_friction(const FrictionBase::TFrictionInput &input) const override
Definition: FrictionBase.h:41