carla 0.14.1

Rust client library for Carla simulator
Documentation
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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
use crate::{
    error::ffi::with_ffi_error,
    geom::Transform,
    road::{RoadId, SignalOrientation},
};
use carla_sys::carla_rust::client::FfiLandmark;
use cxx::SharedPtr;
use derivative::Derivative;
use static_assertions::assert_impl_all;

use super::Waypoint;

/// Represents a landmark in the simulation.
///
/// Landmarks are elements in the road network such as traffic signs, speed limits,
/// and other regulatory or informational signs defined in OpenDRIVE. They provide
/// detailed information about road rules and can be queried from waypoints or the map.
///
/// Corresponds to [`carla.Landmark`](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark) in the Python API.
///
/// # Examples
///
/// ```no_run
/// use carla::client::Client;
///
/// let client = Client::default();
/// let world = client.world();
/// let map = world.map();
///
/// # let spawn_points = map.recommended_spawn_points();
/// # let waypoint = map.waypoint_at(&spawn_points.get(0).unwrap().location).unwrap();
/// // Get landmarks within 50 meters of a waypoint
/// let landmarks = waypoint.all_landmarks_in_distance(50.0, false);
///
/// for landmark in landmarks.iter() {
///     println!("Landmark: {} (type: {})", landmark.name(), landmark.type_());
///     println!("  Value: {}{}", landmark.value(), landmark.unit());
///     println!("  Position: {:?}", landmark.transform().location);
/// }
/// ```
#[derive(Clone, Derivative)]
#[derivative(Debug)]
#[repr(transparent)]
pub struct Landmark {
    #[derivative(Debug = "ignore")]
    pub(crate) inner: SharedPtr<FfiLandmark>,
}

impl Landmark {
    /// Returns the waypoint closest to the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.waypoint](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.waypoint)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.waypoint](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.waypoint)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.waypoint](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.waypoint)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn waypoint(&self) -> crate::Result<Option<Waypoint>> {
        let ptr = with_ffi_error("waypoint", |e| self.inner.GetWaypoint(e))?;
        Ok(Waypoint::from_cxx(ptr))
    }

    /// Returns the transform (position and rotation) of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.transform](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.transform)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.transform](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.transform)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.transform](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.transform)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn transform(&self) -> Transform {
        Transform::from_ffi(self.inner.GetTransform().clone())
    }

    /// Returns the OpenDRIVE road ID.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.road_id](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.road_id)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.road_id](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.road_id)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.road_id](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.road_id)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn road_id(&self) -> RoadId {
        self.inner.GetRoadId().into()
    }

    /// Returns the distance from the beginning of the road.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.distance](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.distance)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.distance](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.distance)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.distance](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.distance)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn distance(&self) -> f64 {
        self.inner.GetDistance()
    }

    /// Returns the s coordinate in the OpenDRIVE specification.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.s](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.s)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.s](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.s)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.s](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.s)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    ///
    /// The "s" coordinate represents the distance along the road.
    pub fn s(&self) -> f64 {
        self.inner.GetS()
    }

    /// Returns the t coordinate in the OpenDRIVE specification.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.t](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.t)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.t](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.t)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.t](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.t)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    ///
    /// The "t" coordinate represents the lateral offset from the road center.
    pub fn t(&self) -> f64 {
        self.inner.GetT()
    }

    /// Returns the unique identifier of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.id](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.id)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.id](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.id)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.id](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.id)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn id(&self) -> String {
        self.inner.GetId().to_string()
    }

    /// Returns the name of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.name](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.name)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.name](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.name)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.name](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.name)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn name(&self) -> String {
        self.inner.GetName().to_string()
    }

    /// Returns whether the landmark is dynamic.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.is_dynamic](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.is_dynamic)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.is_dynamic](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.is_dynamic)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.is_dynamic](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.is_dynamic)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    ///
    /// Dynamic landmarks can change state (e.g., variable speed limit signs).
    pub fn is_dynamic(&self) -> bool {
        self.inner.IsDynamic()
    }

    /// Returns the orientation of the signal.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.orientation](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.orientation)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.orientation](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.orientation)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.orientation](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.orientation)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn orientation(&self) -> SignalOrientation {
        self.inner.GetOrientation()
    }

    /// Returns the Z offset of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.z_offset](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.z_offset)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.z_offset](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.z_offset)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.z_offset](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.z_offset)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn z_offset(&self) -> f64 {
        self.inner.GetZOffset()
    }

    /// Returns the country code of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.country](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.country)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.country](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.country)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.country](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.country)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn country(&self) -> String {
        self.inner.GetCountry().to_string()
    }

    /// Returns the type of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.type](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.type)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.type](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.type)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.type](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.type)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    ///
    /// Common types include speed limits ("1000001"), stop signs, etc.
    pub fn type_(&self) -> String {
        self.inner.GetType().to_string()
    }

    /// Returns the subtype of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.sub_type](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.sub_type)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.sub_type](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.sub_type)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.sub_type](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.sub_type)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn sub_type(&self) -> String {
        self.inner.GetSubType().to_string()
    }

    /// Returns the value of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.value](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.value)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.value](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.value)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.value](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.value)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    ///
    /// For speed limit signs, this is the speed limit value.
    pub fn value(&self) -> f64 {
        self.inner.GetValue()
    }

    /// Returns the unit of the landmark's value.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.unit](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.unit)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.unit](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.unit)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.unit](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.unit)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    ///
    /// For speed limits, this is typically "km/h" or "mph".
    pub fn unit(&self) -> String {
        self.inner.GetUnit().to_string()
    }

    /// Returns the height of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.height](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.height)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.height](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.height)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.height](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.height)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn height(&self) -> f64 {
        self.inner.GetHeight()
    }

    /// Returns the width of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.width](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.width)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.width](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.width)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.width](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.width)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn width(&self) -> f64 {
        self.inner.GetWidth()
    }

    /// Returns the text content of the landmark.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.text](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.text)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.text](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.text)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.text](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.text)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn text(&self) -> String {
        self.inner.GetText().to_string()
    }

    /// Returns the horizontal offset.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.h_offset](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.h_offset)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.h_offset](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.h_offset)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.h_offset](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.h_offset)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn h_offset(&self) -> f64 {
        self.inner.GethOffset()
    }

    /// Returns the pitch angle.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.pitch](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.pitch)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.pitch](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.pitch)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.pitch](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.pitch)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn pitch(&self) -> f64 {
        self.inner.GetPitch()
    }

    /// Returns the roll angle.
    #[cfg_attr(
        carla_version_0916,
        doc = " See [carla.Landmark.roll](https://carla.readthedocs.io/en/0.9.16/python_api/#carla.Landmark.roll)"
    )]
    #[cfg_attr(
        carla_version_0915,
        doc = " See [carla.Landmark.roll](https://carla.readthedocs.io/en/0.9.15/python_api/#carla.Landmark.roll)"
    )]
    #[cfg_attr(
        carla_version_0914,
        doc = " See [carla.Landmark.roll](https://carla.readthedocs.io/en/0.9.14/python_api/#carla.Landmark.roll)"
    )]
    #[cfg_attr(
        any(carla_version_0916, carla_version_0915, carla_version_0914),
        doc = " in the Python API."
    )]
    pub fn roll(&self) -> f64 {
        self.inner.GetRoll()
    }

    /// Returns the lane validity ranges for this landmark.
    ///
    /// Each pair `(from_lane, to_lane)` indicates which lanes this landmark
    /// applies to.
    pub fn lane_validities(&self) -> crate::Result<Vec<(i32, i32)>> {
        let count = self.inner.GetValiditiesCount();
        let mut result = Vec::with_capacity(count);
        for i in 0..count {
            let from = with_ffi_error("validity_from_lane", |e| {
                self.inner.GetValidityFromLane(i, e)
            })?;
            let to = with_ffi_error("validity_to_lane", |e| self.inner.GetValidityToLane(i, e))?;
            result.push((from, to));
        }
        Ok(result)
    }
}

impl Landmark {
    pub(crate) fn from_cxx(ptr: SharedPtr<FfiLandmark>) -> Option<Self> {
        if ptr.is_null() {
            None
        } else {
            Some(Self { inner: ptr })
        }
    }
}

assert_impl_all!(Landmark: Send, Sync);