#include <Wheel.h>
Public Member Functions | |
void | getAs3DObject (mrpt::opengl::CSetOfObjects &obj) |
double | getPhi () const |
Orientation (rad) wrt vehicle local frame. More... | |
double | getW () const |
Spinning velocity (rad/s) wrt shaft. More... | |
void | loadFromXML (const rapidxml::xml_node< char > *xml_node) |
void | recalcInertia () |
Recompute Iyy from mass, diameter and height. More... | |
void | setPhi (double val) |
Orientation (rad) wrt vehicle local frame. More... | |
void | setW (double val) |
Spinning velocity (rad/s) wrt shaft. More... | |
Wheel () | |
Public Attributes | |
mrpt::img::TColor | color {0xff323232} |
double | diameter = .4 |
double | Iyy = 1.0 |
const TParameterDefinitions | m_params |
double | mass = 2.0 |
[kg] More... | |
double | width = .2 |
double | x = 0 |
double | y = -0.5 |
double | yaw = 0 |
Protected Attributes | |
double | phi = 0 |
double | w = 0 |
Common info for 2D wheels, for usage in derived classes. Wheels are modeled as a mass with a rectangular shape.
void Wheel::getAs3DObject | ( | mrpt::opengl::CSetOfObjects & | obj | ) |
|
inline |
|
inline |
void Wheel::loadFromXML | ( | const rapidxml::xml_node< char > * | xml_node | ) |
void Wheel::recalcInertia | ( | ) |
|
inline |
|
inline |
mrpt::img::TColor mvsim::Wheel::color {0xff323232} |
double mvsim::Wheel::diameter = .4 |
double mvsim::Wheel::Iyy = 1.0 |
Inertia: computed automatically from geometry at constructor and at loadFromXML(), but can be overrided.
const TParameterDefinitions mvsim::Wheel::m_params |
|
protected |
double mvsim::Wheel::x = 0 |