Go to the documentation of this file.
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;
40 double x = 0,
y = -0.5,
yaw = 0;
43 mrpt::math::TPose3D
pose()
const {
return {
x,
y, 0,
yaw, 0, 0}; }
54 mrpt::img::TColor
color{0xff323232};
64 {
"mass", {
"%lf", &
mass}},
65 {
"width", {
"%lf", &
width}},
67 {
"color", {
"%color", &
color}},
68 {
"inertia", {
"%lf", &
Iyy}},
78 void getAs3DObject(mrpt::opengl::CSetOfObjects& obj,
bool isPhysicalScene);
82 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& viz,
83 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& physical,
bool childrenOnly)
override;
85 double getPhi()
const {
return phi; }
86 void setPhi(
double val) {
phi = val; }
87 double getW()
const {
return w; }
88 void setW(
double val) {
w = val; }
std::string linked_yaw_object_name
void internalGuiUpdate(const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &viz, const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &physical, bool childrenOnly) override
const TParameterDefinitions params_
void recalcInertia()
Recompute Iyy from mass, diameter and height.
void getAs3DObject(mrpt::opengl::CSetOfObjects &obj, bool isPhysicalScene)
std::map< std::string, TParamEntry > TParameterDefinitions
void loadFromXML(const rapidxml::xml_node< char > *xml_node)
mrpt::math::TPose3D pose() const
std::string asString() const
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:08