12 #include <mrpt/img/TColor.h> 13 #include <mrpt/math/TPoint2D.h> 14 #include <mrpt/math/TPolygon2D.h> 15 #include <mrpt/math/TPose3D.h> 16 #include <mrpt/poses/CPose2D.h> 23 class DefaultFriction;
25 class DynamicsDifferential;
38 double x = 0,
y = -0.5,
yaw = 0;
41 mrpt::math::TPose3D
pose()
const {
return {
x,
y, 0,
yaw, 0, 0}; }
52 mrpt::img::TColor
color{0xff323232};
62 {
"mass", {
"%lf", &mass}},
63 {
"width", {
"%lf", &
width}},
64 {
"diameter", {
"%lf", &diameter}},
65 {
"color", {
"%color", &
color}},
66 {
"inertia", {
"%lf", &Iyy}},
67 {
"linked_yaw", {
"%s", &linked_yaw_object_name}},
68 {
"linked_yaw_offset_deg", {
"%lf_deg", &linked_yaw_offset}}};
80 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& viz,
81 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& physical,
82 bool childrenOnly)
override;
92 double getW()
const {
return w; }
93 void setW(
double val) {
w = val; }
void setW(double val)
Spinning velocity (rad/s) wrt shaft.
std::map< std::string, TParamEntry > TParameterDefinitions
void recalcInertia()
Recompute Iyy from mass, diameter and height.
void loadFromXML(const rapidxml::xml_node< char > *xml_node)
void getAs3DObject(mrpt::opengl::CSetOfObjects &obj)
mrpt::math::TPose3D pose() const
double getW() const
Spinning velocity (rad/s) wrt shaft.
void setPhi(double val)
Orientation (rad) wrt vehicle local frame.
void internalGuiUpdate(const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &viz, const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &physical, bool childrenOnly) override
double getPhi() const
Orientation (rad) wrt vehicle local frame.
std::string asString() const
std::string linked_yaw_object_name
const TParameterDefinitions params_