Public Member Functions | Public Attributes | Private Attributes | List of all members
mvsim::DefaultFriction Class Reference

#include <DefaultFriction.h>

Inheritance diagram for mvsim::DefaultFriction:
Inheritance graph
[legend]

Public Member Functions

 DefaultFriction (VehicleBase &my_vehicle, const rapidxml::xml_node< char > *node)
 
virtual void evaluate_friction (const FrictionBase::TFrictionInput &input, mrpt::math::TPoint2D &out_result_force_local) const override
 
- Public Member Functions inherited from mvsim::FrictionBase
 FrictionBase (VehicleBase &my_vehicle)
 
void setLogger (const std::weak_ptr< CSVLogger > &logger)
 
virtual ~FrictionBase ()
 

Public Attributes

const TParameterDefinitions m_params
 

Private Attributes

double m_C_damping
 For wheels "internal friction" (N*m*s/rad) More...
 
double m_mu
 friction coeficient (non-dimensional) More...
 

Additional Inherited Members

- Public Types inherited from mvsim::FrictionBase
using Ptr = std::shared_ptr< FrictionBase >
 
- Static Public Member Functions inherited from mvsim::FrictionBase
static FrictionBase::Ptr factory (VehicleBase &parent, const rapidxml::xml_node< char > *xml_node)
 
- Protected Attributes inherited from mvsim::FrictionBase
std::weak_ptr< CSVLoggerm_logger
 
VehicleBasem_my_vehicle
 
Worldm_world
 

Detailed Description

The default friction model for interaction between each wheel-ground contact point

Definition at line 23 of file DefaultFriction.h.

Constructor & Destructor Documentation

DefaultFriction::DefaultFriction ( VehicleBase my_vehicle,
const rapidxml::xml_node< char > *  node 
)

Definition at line 20 of file DefaultFriction.cpp.

Member Function Documentation

void DefaultFriction::evaluate_friction ( const FrictionBase::TFrictionInput input,
mrpt::math::TPoint2D out_result_force_local 
) const
overridevirtual

Evaluates the net force on this wheel (in local coordinates). Refer to the manual for the theorical model.

Implements mvsim::FrictionBase.

Definition at line 34 of file DefaultFriction.cpp.

Member Data Documentation

double mvsim::DefaultFriction::m_C_damping
private

For wheels "internal friction" (N*m*s/rad)

Definition at line 37 of file DefaultFriction.h.

double mvsim::DefaultFriction::m_mu
private

friction coeficient (non-dimensional)

Definition at line 36 of file DefaultFriction.h.

const TParameterDefinitions mvsim::DefaultFriction::m_params
Initial value:
= {
{"mu", {"%lf", &m_mu}}, {"C_damping", {"%lf", &m_C_damping}}}

Definition at line 40 of file DefaultFriction.h.


The documentation for this class was generated from the following files:


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