10 #include <mrpt/opengl/COpenGLScene.h> 19 using namespace mvsim;
30 color_(0xe0, 0xe0, 0xe0, 0xff),
46 params[
"floating_focus"] =
66 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& viz,
67 [[maybe_unused]]
const mrpt::optional_ref<mrpt::opengl::COpenGLScene>&
69 [[maybe_unused]]
bool childrenOnly)
86 mrpt::math::TPoint3D center_offset(.0, .0, .0);
92 World::VehicleList::const_iterator it_veh =
96 throw std::runtime_error(mrpt::format(
97 "[GroundGrid] *ERROR* Cannot find vehicle named '%s' to " 103 if (it_veh == vehs.end()) it_veh = vehs.begin();
105 if (it_veh != vehs.end())
107 const mrpt::math::TPose3D& pose = it_veh->second->getPose();
108 center_offset.x = pose.x;
109 center_offset.y = pose.y;
116 ::floor(std::abs(center_offset.x) /
interval_) *
117 (center_offset.x < 0 ? -1. : 1.);
119 ::floor(std::abs(center_offset.y) /
interval_) *
120 (center_offset.y < 0 ? -1. : 1.);
This file contains rapidxml parser and DOM implementation.
std::map< std::string, TParamEntry > TParameterDefinitions
void parse_xmlnode_children_as_param(const rapidxml::xml_node< char > &xml_node, const TParameterDefinitions ¶ms, const std::map< std::string, std::string > &variableNamesValues={}, const char *functionNameContext="", mrpt::system::COutputLogger *logger=nullptr)
std::string float_center_at_vehicle_name_
virtual void internalGuiUpdate(const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &viz, const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &physical, bool childrenOnly) override
std::multimap< std::string, VehicleBase::Ptr > VehicleList
const VehicleList & getListOfVehicles() const
virtual void loadConfigFrom(const rapidxml::xml_node< char > *root) override
const std::map< std::string, std::string > & user_defined_variables() const
mrpt::opengl::CGridPlaneXY::Ptr gl_groundgrid_