CARLA
Loading...
Searching...
No Matches
CarlaNavAreas.h
Go to the documentation of this file.
1// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include <util/ue-header-guard-begin.h>
10#include "CoreMinimal.h"
11#include "NavAreas/NavArea.h"
12#include <util/ue-header-guard-end.h>
13
14#include "CarlaNavAreas.generated.h"
15
16/// Nav area stamped on driving-lane surfaces (via the road meshes' nav
17/// collision area class). Expensive to traverse so that crossing pedestrians
18/// prefer crosswalks and only cut through open road when the detour is large;
19/// excluded entirely from non-crossing walkers' query filters.
20UCLASS()
21class CARLA_API UNavAreaCarlaRoad : public UNavArea
22{
23 GENERATED_BODY()
24
25public:
26
28 {
29 DefaultCost = 10.0f;
30 DrawColor = FColor::Red;
31 }
32};
33
34/// Nav area stamped over OpenDRIVE crosswalk polygons (modifier boxes
35/// generated by the CarlaCrosswalkNav world-partition builder). Slightly more
36/// expensive than sidewalk so paths do not weave through crossings casually,
37/// but far cheaper than open road.
38UCLASS()
39class CARLA_API UNavAreaCarlaCrosswalk : public UNavArea
40{
41 GENERATED_BODY()
42
43public:
44
46 {
47 DefaultCost = 1.5f;
48 DrawColor = FColor::Yellow;
49 }
50};
Nav area stamped over OpenDRIVE crosswalk polygons (modifier boxes generated by the CarlaCrosswalkNav...
Nav area stamped on driving-lane surfaces (via the road meshes' nav collision area class).