10 #include <mrpt/opengl/COpenGLScene.h>
19 using namespace mvsim;
30 color_(0xe0, 0xe0, 0xe0, 0xff),
64 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& viz,
65 [[maybe_unused]]
const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& physical,
66 [[maybe_unused]]
bool childrenOnly)
83 mrpt::math::TPoint3D center_offset(.0, .0, .0);
92 throw std::runtime_error(mrpt::format(
93 "[GroundGrid] *ERROR* Cannot find vehicle named '%s' to "
99 if (it_veh == vehs.end()) it_veh = vehs.begin();
101 if (it_veh != vehs.end())
103 const mrpt::math::TPose3D& pose = it_veh->second->getPose();
104 center_offset.x = pose.x;
105 center_offset.y = pose.y;
112 (center_offset.x < 0 ? -1. : 1.);
114 (center_offset.y < 0 ? -1. : 1.);