Public Member Functions | Private Attributes | List of all members
MVSimNode::MyWorld Class Reference

#include <mvsim_node_core.h>

Inheritance diagram for MVSimNode::MyWorld:
Inheritance graph
[legend]

Public Member Functions

 MyWorld (MVSimNode &node)
 
virtual void onNewObservation (const mvsim::VehicleBase &veh, const CObservation *obs)
 
- Public Member Functions inherited from mvsim::World
mvsim::ClientcommsClient ()
 
const mvsim::ClientcommsClient () const
 
void connectToServer ()
 
 World ()
 Default ctor: inits an empty world. More...
 
 ~World ()
 Dtor. More...
 
void clear_all ()
 
void load_from_XML (const std::string &xml_text, const std::string &fileNameForPath=std::string("."))
 
std::unique_ptr< b2World > & getBox2DWorld ()
 
const std::unique_ptr< b2World > & getBox2DWorld () const
 
b2BodygetBox2DGroundBody ()
 
const VehicleListgetListOfVehicles () const
 
VehicleListgetListOfVehicles ()
 
const BlockListgetListOfBlocks () const
 
BlockListgetListOfBlocks ()
 
const WorldElementListgetListOfWorldElements () const
 
SimulableListgetListOfSimulableObjects ()
 
const SimulableListgetListOfSimulableObjects () const
 
mrpt::system::CTimeLogger & getTimeLogger ()
 
std::string resolvePath (const std::string &in_path) const
 
std::string xmlPathToActualPath (const std::string &modelURI) const
 
virtual void onNewObservation ([[maybe_unused]] const VehicleBase &veh, [[maybe_unused]] const mrpt::obs::CObservation *obs)
 
void runVisitorOnVehicles (const vehicle_visitor_t &v)
 
void runVisitorOnWorldElements (const world_element_visitor_t &v)
 
double get_simul_time () const
 Simulation wall-clock time. More...
 
double get_simul_timestep () const
 Simulation fixed-time interval for numerical integration. More...
 
void set_simul_timestep (double timestep)
 Simulation fixed-time interval for numerical integration. More...
 
double get_gravity () const
 
void set_gravity (double accel)
 
void run_simulation (double dt)
 
void update_GUI (TUpdateGUIParams *params=nullptr)
 
const mrpt::gui::CDisplayWindowGUI::Ptr & gui_window () const
 
void internalUpdate3DSceneObjects (mrpt::opengl::COpenGLScene::Ptr &gl_scene)
 
void internal_GUI_thread ()
 
void internal_process_pending_gui_user_tasks ()
 
void enqueue_task_to_run_in_gui_thread (const std::function< void(void)> &f)
 
bool is_GUI_open () const
 Forces closing the GUI window, if any. More...
 
void close_GUI ()
 a previous call to update_GUI() More...
 

Private Attributes

MVSimNodem_parent
 

Additional Inherited Members

- Public Types inherited from mvsim::World
using VehicleList = std::multimap< std::string, VehicleBase::Ptr >
 
using WorldElementList = std::list< WorldElementBase::Ptr >
 
using BlockList = std::multimap< std::string, Block::Ptr >
 
using SimulableList = std::multimap< std::string, Simulable::Ptr >
 
using vehicle_visitor_t = std::function< void(VehicleBase &)>
 
using world_element_visitor_t = std::function< void(WorldElementBase &)>
 
- Public Attributes inherited from mvsim::World
std::string m_gui_msg_lines
 
std::mutex m_gui_msg_lines_mtx
 
std::thread m_gui_thread
 
std::atomic_bool m_gui_thread_running = false
 
std::atomic_bool m_gui_thread_must_close = false
 
std::mutex m_gui_thread_start_mtx
 
std::vector< std::function< void(void)> > m_gui_user_pending_tasks
 
std::mutex m_gui_user_pending_tasks_mtx
 
TGUIKeyEvent m_lastKeyEvent
 
std::atomic_bool m_lastKeyEventValid = false
 
std::mutex m_lastKeyEvent_mtx
 

Detailed Description

Derived class so we can install hooks (virtual methods)

Definition at line 52 of file mvsim_node_core.h.

Constructor & Destructor Documentation

MVSimNode::MyWorld::MyWorld ( MVSimNode node)
inline

Definition at line 57 of file mvsim_node_core.h.

Member Function Documentation

void MVSimNode::MyWorld::onNewObservation ( const mvsim::VehicleBase veh,
const CObservation *  obs 
)
virtual

Definition at line 654 of file mvsim_node.cpp.

Member Data Documentation

MVSimNode& MVSimNode::MyWorld::m_parent
private

Definition at line 54 of file mvsim_node_core.h.


The documentation for this class was generated from the following files:


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:52