Main Page
Namespaces
Classes
Files
File List
File Members
libmvsim
include
mvsim
FrictionModels
DefaultFriction.h
Go to the documentation of this file.
1
/*+-------------------------------------------------------------------------+
2
| MultiVehicle simulator (libmvsim) |
3
| |
4
| Copyright (C) 2014 Jose Luis Blanco Claraco (University of Almeria) |
5
| Copyright (C) 2017 Borys Tymchenko (Odessa Polytechnic University) |
6
| Distributed under GNU General Public License version 3 |
7
| See <http://www.gnu.org/licenses/> |
8
+-------------------------------------------------------------------------+ */
9
10
#pragma once
11
12
#include <
mvsim/FrictionModels/FrictionBase.h
>
13
#include <vector>
14
#include <
Box2D/Dynamics/Joints/b2FrictionJoint.h
>
15
16
namespace
mvsim
17
{
21
class
DefaultFriction
:
public
FrictionBase
22
{
23
DECLARES_REGISTER_FRICTION
(
DefaultFriction
)
24
public
:
25
DefaultFriction
(
26
VehicleBase
& my_vehicle,
const
rapidxml::xml_node<char>
* node);
27
28
// See docs in base class.
29
virtual
void
evaluate_friction
(
30
const
FrictionBase::TFrictionInput
& input,
31
mrpt::math::TPoint2D& out_result_force_local)
const
;
32
33
private
:
34
double
m_mu
;
35
double
m_C_damping
;
36
};
37
}
mvsim
Definition:
basic_types.h:47
mvsim::DefaultFriction::DefaultFriction
DefaultFriction(VehicleBase &my_vehicle, const rapidxml::xml_node< char > *node)
Definition:
DefaultFriction.cpp:19
b2FrictionJoint.h
mvsim::VehicleBase
Definition:
VehicleBase.h:50
mvsim::DefaultFriction::m_mu
double m_mu
friction coeficient (non-dimensional)
Definition:
DefaultFriction.h:34
mvsim::FrictionBase
Definition:
FrictionBase.h:20
mvsim::FrictionBase::TFrictionInput
Definition:
FrictionBase.h:31
DECLARES_REGISTER_FRICTION
#define DECLARES_REGISTER_FRICTION(CLASS_NAME)
Definition:
FrictionBase.h:78
rapidxml::xml_node
Definition:
rapidxml.hpp:137
mvsim::DefaultFriction
Definition:
DefaultFriction.h:21
mvsim::DefaultFriction::evaluate_friction
virtual void evaluate_friction(const FrictionBase::TFrictionInput &input, mrpt::math::TPoint2D &out_result_force_local) const
Definition:
DefaultFriction.cpp:41
mvsim::DefaultFriction::m_C_damping
double m_C_damping
For wheels "internal friction" (N*m*s/rad)
Definition:
DefaultFriction.h:35
FrictionBase.h
mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:40