|
MVSim
Lightweight simulator for 2.5D vehicles and robots
|
#include <FrictionBase.h>


Classes | |
| struct | TFrictionInput |
Public Types | |
| using | Ptr = std::shared_ptr< FrictionBase > |
Public Member Functions | |
| FrictionBase (VehicleBase &my_vehicle) | |
| virtual mrpt::math::TVector2D | evaluate_friction (const FrictionBase::TFrictionInput &input) const =0 |
| bool | hasLogger () const |
| void | setLogger (const std::weak_ptr< CSVLogger > &logger) |
Static Public Member Functions | |
| static FrictionBase::Ptr | factory (VehicleBase &parent, const rapidxml::xml_node< char > *xml_node) |
Protected Attributes | |
| World * | world_ |
| VehicleBase & | myVehicle_ |
| std::optional< std::weak_ptr< CSVLogger > > | logger_ |
Virtual base class for all friction models
|
pure virtual |
Evaluates the net force on this wheel (in vehicle local coordinates). Refer to the manual for the theorical model.
Implemented in mvsim::WardIagnemmaFriction, mvsim::EllipseCurveMethod, and mvsim::DefaultFriction.
|
static |
Class factory: Creates a friction object from XML description of type "<friction>...</friction>".