CARLA
Loading...
Searching...
No Matches
BaseCarlaMovementComponent.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// Copyright (c) 2019 Intel Corporation
4//
5// This work is licensed under the terms of the MIT license.
6// For a copy, see <https://opensource.org/licenses/MIT>.
7
8#pragma once
9
11
12#include <util/ue-header-guard-begin.h>
13#include "GameFramework/MovementComponent.h"
14#include <util/ue-header-guard-end.h>
15
16#include "BaseCarlaMovementComponent.generated.h"
17
19
20UCLASS(Blueprintable, meta=(BlueprintSpawnableComponent))
22{
23 GENERATED_BODY()
24
25protected:
26
27 UPROPERTY()
28 ACarlaWheeledVehicle* CarlaVehicle;
29
30public:
31
32 virtual void BeginPlay() override;
33
34 virtual void ProcessControl(FVehicleControl &Control);
35
36 virtual FVector GetVelocity() const;
37
38 virtual int32 GetVehicleCurrentGear() const;
39
40 virtual float GetVehicleForwardSpeed() const;
41
42protected:
43
44 void DisableUE4VehiclePhysics();
45
46 void EnableUE4VehiclePhysics(bool bResetVelocity = true);
47};
Base class for CARLA wheeled vehicles.
virtual void BeginPlay() override
int32 GetVehicleCurrentGear() const
Active gear of the vehicle.
float GetVehicleForwardSpeed() const
Forward speed in cm/s. Might be negative if goes backwards.
virtual FVector GetVelocity() const override