CARLA
Loading...
Searching...
No Matches
CarlaWalkerNavFilters.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
10
11#include <util/ue-header-guard-begin.h>
12#include "CoreMinimal.h"
13#include "NavFilters/NavigationQueryFilter.h"
14#include <util/ue-header-guard-end.h>
15
16#include "CarlaWalkerNavFilters.generated.h"
17
18/// Query filter for walkers that must not cross roads (the default): road and
19/// crosswalk polys are excluded, so paths stay on sidewalks/terrain and random
20/// nav locations never land on the roadway.
21UCLASS()
23{
24 GENERATED_BODY()
25
26public:
27
29 {
30 FNavigationFilterArea Road;
31 Road.AreaClass = UNavAreaCarlaRoad::StaticClass();
32 Road.bIsExcluded = true;
33 Areas.Add(Road);
34
35 FNavigationFilterArea Crosswalk;
36 Crosswalk.AreaClass = UNavAreaCarlaCrosswalk::StaticClass();
37 Crosswalk.bIsExcluded = true;
38 Areas.Add(Crosswalk);
39 }
40};
41
42/// Query filter for "crosser" walkers (drawn with probability
43/// pedestrians_cross_factor): road and crosswalk are traversable and keep the
44/// default costs of their area classes (crosswalk ~1.5x, road ~10x), so
45/// crossings happen at crosswalks unless the detour is unreasonable.
46UCLASS()
48{
49 GENERATED_BODY()
50};
Query filter for "crosser" walkers (drawn with probability pedestrians_cross_factor): road and crossw...
Query filter for walkers that must not cross roads (the default): road and crosswalk polys are exclud...