#include <FrictionBase.h>
Classes | |
struct | TFrictionInput |
Public Member Functions | |
virtual void | evaluate_friction (const FrictionBase::TFrictionInput &input, mrpt::math::TPoint2D &out_result_force_local) const =0 |
FrictionBase (VehicleBase &my_vehicle) | |
void | setLogger (const std::weak_ptr< CSVLogger > &logger) |
virtual | ~FrictionBase () |
Static Public Member Functions | |
static FrictionBase * | factory (VehicleBase &parent, const rapidxml::xml_node< char > *xml_node) |
Protected Attributes | |
std::weak_ptr< CSVLogger > | m_logger |
VehicleBase & | m_my_vehicle |
World * | m_world |
Virtual base class for all friction models
Definition at line 20 of file FrictionBase.h.
FrictionBase::FrictionBase | ( | VehicleBase & | my_vehicle | ) |
Definition at line 34 of file FrictionBase.cpp.
FrictionBase::~FrictionBase | ( | ) | [virtual] |
Definition at line 39 of file FrictionBase.cpp.
virtual void mvsim::FrictionBase::evaluate_friction | ( | const FrictionBase::TFrictionInput & | input, |
mrpt::math::TPoint2D & | out_result_force_local | ||
) | const [pure virtual] |
Evaluates the net force on this wheel (in local coordinates). Refer to the manual for the theorical model.
Implemented in mvsim::WardIagnemmaFriction, and mvsim::DefaultFriction.
FrictionBase * FrictionBase::factory | ( | VehicleBase & | parent, |
const rapidxml::xml_node< char > * | xml_node | ||
) | [static] |
Class factory: Creates a friction object from XML description of type "<friction>...</friction>".
Definition at line 40 of file FrictionBase.cpp.
void FrictionBase::setLogger | ( | const std::weak_ptr< CSVLogger > & | logger | ) |
Definition at line 62 of file FrictionBase.cpp.
std::weak_ptr<CSVLogger> mvsim::FrictionBase::m_logger [protected] |
Definition at line 67 of file FrictionBase.h.
VehicleBase& mvsim::FrictionBase::m_my_vehicle [protected] |
Definition at line 64 of file FrictionBase.h.
World* mvsim::FrictionBase::m_world [protected] |
Definition at line 63 of file FrictionBase.h.