basic_types.h
Go to the documentation of this file.
1 /*+-------------------------------------------------------------------------+
2  | MultiVehicle simulator (libmvsim) |
3  | |
4  | Copyright (C) 2014-2024 Jose Luis Blanco Claraco |
5  | Copyright (C) 2017 Borys Tymchenko (Odessa Polytechnic University) |
6  | Distributed under 3-clause BSD License |
7  | See COPYING |
8  +-------------------------------------------------------------------------+ */
9 #pragma once
10 
11 // Misc. types & forwards declarations
12 
13 #include <mrpt/math/TPoint2D.h>
14 #include <mrpt/math/TPose2D.h>
15 #include <mrpt/math/TTwist2D.h>
16 
17 #include <cstdint> // uintptr_t
18 #include <string>
19 #include <vector>
20 
21 class b2World;
22 class b2Body;
23 class b2Fixture;
24 
25 namespace rapidxml
26 {
27 // Forward declarations
28 template <class Ch>
29 class xml_node;
30 template <class Ch>
31 class xml_attribute;
32 template <class Ch>
33 class xml_document;
34 } // namespace rapidxml
35 
36 namespace mrpt
37 {
38 namespace opengl
39 {
40 class CSetOfObjects;
41 } // namespace opengl
42 namespace slam
43 {
44 class CObservation;
45 }
46 } // namespace mrpt
47 
48 namespace mvsim
49 {
50 class World;
51 class VehicleBase;
52 template <typename Ch = char>
54 
59 {
60  b2World* b2_world = nullptr;
61  World* world = nullptr;
62  double simul_time = 0;
63  double dt = 0;
64 };
65 
67 constexpr uintptr_t INVISIBLE_FIXTURE_USER_DATA = 1;
68 
71 {
72  std::vector<float> axes;
73  std::vector<bool> buttons;
74 
75  TJoyStickEvent() = default;
76 };
77 
78 } // namespace mvsim
mvsim
Definition: Client.h:21
mvsim::JointXMLnode
Definition: basic_types.h:53
b2Body
A rigid body. These are created via b2World::CreateBody.
Definition: b2_body.h:128
mvsim::TSimulContext::simul_time
double simul_time
Current time in the simulated world.
Definition: basic_types.h:62
mrpt
Definition: basic_types.h:36
mvsim::TSimulContext::dt
double dt
timestep
Definition: basic_types.h:63
mvsim::TJoyStickEvent::TJoyStickEvent
TJoyStickEvent()=default
rapidxml
Definition: rapidxml.hpp:57
mvsim::TSimulContext
Definition: basic_types.h:58
mvsim::TJoyStickEvent::buttons
std::vector< bool > buttons
Definition: basic_types.h:73
b2Fixture
Definition: b2_fixture.h:116
mvsim::TJoyStickEvent
Definition: basic_types.h:70
mvsim::TSimulContext::world
World * world
Definition: basic_types.h:61
mvsim::World
Definition: World.h:82
mvsim::TJoyStickEvent::axes
std::vector< float > axes
Definition: basic_types.h:72
mvsim::INVISIBLE_FIXTURE_USER_DATA
constexpr uintptr_t INVISIBLE_FIXTURE_USER_DATA
Used to signal a Box2D fixture as "invisible" to sensors.
Definition: basic_types.h:67
mvsim::TSimulContext::b2_world
b2World * b2_world
Definition: basic_types.h:60
b2World
Definition: b2_world.h:46


mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:07