Commit a57cf4a
Bernd Gassmann
Rework ROS2 support
DataTypes:
Introduced geom::AngularVelocity, geom::Velocity,geom::Acceleration,
geom::Quaternion to make the Unreal -> Carla -> ROS2 data conversion
more clear. Also in preparation of the Carla -> ROS2 data conversion
afterwards.
Added some Math functions for Quaternions.
BUGFIX:
Fixed geom::Rotation::RotateVector() rotation directions of
pitch and roll!
Added RightHandedVector3D.h (temporary internal class)
Commented TransformationMatrix access out by ifdef to prevent
from erroneous misuse
RPC:
Extended Control types by timestamp.
Client:
Applied geom::AngularVelocity, geom::Velocity, geom::Acceleration
to Actor functions
Added Vehicle::GetAckermanControl()
detail/Episode,Simulator: Fixed compiler warnings on std::move
Actor:
Moved Blueprint handling sources to carla/actor from carla/client to
be able to make use of that functionalilty within server when ROS2 is
activated.
Streaming:
Moved streaming/detail/tcp/Message.h -> streaming/detail/Message.h
to be deployed for non-tcp communication streams like ROS2.
Moved general (tcp-independent parts) from tcp/ServerSession to
streaming/detail/Session.h to be used for ROS2 streams. Had to
rename a Write() function to WriteMessage because of virtual
function overloaded with template function not possible.
Make Dispatcher a shared_pointer to be able to access from ROS2.
Removed EnableForROS calls, as the decision to use ROS or
not is done via configuration. The topics are always crecated
whenever the sensors are spawned and data-stream sessions are
opened/attached on demanded; i.e. a ROS2 participant
is subscribing to the topic.
Serializer:
Provide GetHeaderOffset() functions where missing.
Add sensor_relative_transform (Location and Quaternion parts) to
SensorHeader to support relative TF. Keep it in the header also
when not compiled with ROS2 to keep ROS enabled server builds
compatible with non-ROS enabled client builds as it's not that
much of an overhead.
Add SerializerVectorAllocator to provide the SharedBufferView
data 'under the hood' as vector without data copy.
Remove move semantic from Deserialize on server builds to allow
multiple sinks (i.e. TCP-Server and ROS2 to deserialize the data without
destoying it).
Added VehicleAckermannControl to ActorDynamicState in form of a
union with VehicleControl to save space
Extract sensor/data/Array.h into a ArrayConst.h base class to be
used for const data acess on ROS2 Deserialization of
RawEpisodeState.
UE4:
Updated accordingly.
ROS2:
Filled the most of the ROS2 interfaces.
Removed some compiler warnings
TODO: Testing of control interfaces; Testing of sensor data values; Find
out why the services are not visible in ROS21 parent e3ad358 commit a57cf4a
File tree
543 files changed
+41432
-11324
lines changed- LibCarla
- cmake
- client
- server
- source
- carla
- actor
- client
- detail
- geom
- multigpu
- ros2
- impl/fastdds
- listeners
- publishers
- ros_types
- ackermann_msgs/msg
- builtin_interfaces/msg
- carla_msgs
- msg
- srv
- derived_object_msgs/msg
- diagnostic_msgs/msg
- fastcdr
- geometry_msgs/msg
- rosgraph_msgs/msg
- sensor_msgs/msg
- shape_msgs/msg
- std_msgs/msg
- tf2_msgs/msg
- services
- subscribers
- types
- rpc
- sensor
- data
- s11n
- streaming
- detail
- tcp
- low_level
- test/common
- PythonAPI
- carla/source/libcarla
- test/unit
- Unreal/CarlaUE4/Plugins/Carla/Source/Carla
- Actor
- Game
- Recorder
- Sensor
- Server
- Util
- Vehicle
- Walker
- Util
- BuildTools
- Formatting
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
543 files changed
+41432
-11324
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
8 | 16 | | |
9 | | - | |
10 | | - | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | | - | |
13 | | - | |
| 20 | + | |
14 | 21 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 22 | | |
63 | 23 | | |
64 | 24 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
68 | 28 | | |
69 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
70 | 40 | | |
71 | 41 | | |
72 | 42 | | |
| |||
85 | 55 | | |
86 | 56 | | |
87 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 93 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
137 | 112 | | |
138 | 113 | | |
139 | 114 | | |
| |||
142 | 117 | | |
143 | 118 | | |
144 | 119 | | |
145 | | - | |
| 120 | + | |
146 | 121 | | |
147 | | - | |
148 | 122 | | |
| 123 | + | |
149 | 124 | | |
150 | 125 | | |
151 | 126 | | |
| |||
157 | 132 | | |
158 | 133 | | |
159 | 134 | | |
160 | | - | |
| 135 | + | |
| 136 | + | |
161 | 137 | | |
162 | 138 | | |
| 139 | + | |
163 | 140 | | |
164 | 141 | | |
165 | 142 | | |
166 | 143 | | |
167 | 144 | | |
168 | | - | |
| 145 | + | |
169 | 146 | | |
170 | | - | |
171 | 147 | | |
| 148 | + | |
172 | 149 | | |
173 | 150 | | |
174 | 151 | | |
| |||
181 | 158 | | |
182 | 159 | | |
183 | 160 | | |
184 | | - | |
| 161 | + | |
| 162 | + | |
185 | 163 | | |
186 | 164 | | |
187 | | - | |
| 165 | + | |
| 166 | + | |
188 | 167 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
0 commit comments