14 #include <mrpt/opengl/COpenGLScene.h> 18 using namespace mvsim;
29 m_color(0xe0, 0xe0, 0xe0, 0xff),
42 std::map<std::string, TParamEntry> params;
44 params[
"floating_focus"] =
79 mrpt::math::TPoint3D center_offset(.0, .0, .0);
85 World::TListVehicles::const_iterator it_veh =
89 throw std::runtime_error(
91 "[GroundGrid] *ERROR* Cannot find vehicle named '%s' to " 97 if (it_veh == vehs.end()) it_veh = vehs.begin();
99 if (it_veh != vehs.end())
101 const mrpt::math::TPose3D& pose = it_veh->second->getPose();
102 center_offset.x = pose.x;
103 center_offset.y = pose.y;
110 ::floor(std::abs(center_offset.x) /
m_interval) *
111 (center_offset.x < 0 ? -1. : 1.);
113 ::floor(std::abs(center_offset.y) /
m_interval) *
114 (center_offset.y < 0 ? -1. : 1.);
This file contains rapidxml parser and DOM implementation.
virtual void loadConfigFrom(const rapidxml::xml_node< char > *root)
See docs in base class.
std::multimap< std::string, VehicleBase * > TListVehicles
std::string m_float_center_at_vehicle_name
void parse_xmlnode_children_as_param(const rapidxml::xml_node< char > &xml_node, const std::map< std::string, TParamEntry > ¶ms, const char *function_name_context="")
#define SCENE_INSERT_Z_ORDER(_SCENE, _ZORDER_INDEX, _OBJ_TO_INSERT)
virtual void gui_update(mrpt::opengl::COpenGLScene &scene)
See docs in base class.
const TListVehicles & getListOfVehicles() const
mrpt::opengl::CGridPlaneXY::Ptr m_gl_groundgrid