Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port Telemetry Data (see #5153) #8592

Draft
wants to merge 1 commit into
base: ue5-dev
Choose a base branch
from

Conversation

BBArikL
Copy link

@BBArikL BBArikL commented Jan 20, 2025

Port Telemetry Data to UE5

Checklist:

  • Your branch is up-to-date with the ue5-dev branch and tested with latest changes
  • Extended the README / documentation, if necessary
  • Code compiles correctly
  • All tests passing with make check (only Linux)
  • If relevant, update CHANGELOG.md with your changes

Description

This PR aims to match the TelemetryData feature that has been made on the UE4 version on PR #5153. This does not compile at the moment as it is missing some structures and methods to access the telemetry data. If someone is interested into helping me add the missing code, please reach out. This PR comes from #8560 .

­­­```
[1/3] Compile Module.Carla.11.cpp
In file included from /home/--/Documents/carla/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.11.cpp:33:
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:656:48: error: no member named 'GetEngineRotationSpeed' in 'UChaosVehicleMovementComponent'
656 | TelemetryData.EngineRPM = MovementComponent->GetEngineRotationSpeed();
| ~~~~~~~~~~~~~~~~~ ^
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:661:3: error: unknown type name 'FPhysXVehicleManager'; did you mean 'FChaosVehicleManager'?
661 | FPhysXVehicleManager* MyVehicleManager = FPhysXVehicleManager::GetVehicleManagerFromScene(GetWorld()->GetPhysicsScene());
| ^~~~~~~~~~~~~~~~~~~~
| FChaosVehicleManager
/home/--/Documents/UnrealEngine5_carla/Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosVehicleWheel.h:24:7: note: 'FChaosVehicleManager' declared here
24 | class FChaosVehicleManager;
| ^
In file included from /home/charles/Documents/carla/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.11.cpp:33:
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:661:44: error: use of undeclared identifier 'FPhysXVehicleManager'; did you mean 'FChaosVehicleManager'?
661 | FPhysXVehicleManager* MyVehicleManager = FPhysXVehicleManager::GetVehicleManagerFromScene(GetWorld()->GetPhysicsScene());
| ^~~~~~~~~~~~~~~~~~~~
| FChaosVehicleManager
/home/--/Documents/UnrealEngine5_carla/Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosVehicleWheel.h:24:7: note: 'FChaosVehicleManager' declared here
24 | class FChaosVehicleManager;
| ^
In file included from /home/--/Documents/carla/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.11.cpp:33:
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:661:44: error: incomplete type 'FChaosVehicleManager' named in nested name specifier
661 | FPhysXVehicleManager* MyVehicleManager = FPhysXVehicleManager::GetVehicleManagerFromScene(GetWorld()->GetPhysicsScene());
| ^~~~~~~~~~~~~~~~~~~~~~
/home/--/Documents/UnrealEngine5_carla/Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosVehicleWheel.h:24:7: note: forward declaration of 'FChaosVehicleManager'
24 | class FChaosVehicleManager;
| ^
In file included from /home/charles/Documents/carla/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.11.cpp:33:
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:663:42: error: member access into incomplete type 'FChaosVehicleManager'
663 | SCOPED_SCENE_READ_LOCK(MyVehicleManager->GetScene());
| ^
/home/--/Documents/UnrealEngine5_carla/Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosVehicleWheel.h:24:7: note: forward declaration of 'FChaosVehicleManager'
24 | class FChaosVehicleManager;
| ^
In file included from /home/--/Documents/carla/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.11.cpp:33:
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:664:3: error: unknown type name 'PxWheelQueryResult'
664 | PxWheelQueryResult* WheelsStates = MyVehicleManager->GetWheelsStates_AssumesLocked(MovementComponent);
| ^
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:664:54: error: member access into incomplete type 'FChaosVehicleManager'
664 | PxWheelQueryResult* WheelsStates = MyVehicleManager->GetWheelsStates_AssumesLocked(MovementComponent);
| ^
/home/--/Documents/UnrealEngine5_carla/Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosVehicleWheel.h:24:7: note: forward declaration of 'FChaosVehicleManager'
24 | class FChaosVehicleManager;
| ^
In file included from /home/--/Documents/carla/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.11.cpp:33:
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:668:45: error: no member named 'PVehicle' in 'UChaosVehicleMovementComponent'
668 | for (uint32 w = 0; w < MovementComponent->PVehicle->mWheelsSimData.getNbWheels(); ++w)
| ~~~~~~~~~~~~~~~~~ ^
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:675:51: error: no member named 'PVehicle' in 'UChaosVehicleMovementComponent'
675 | WheelTelemetryData.Omega = MovementComponent->PVehicle->mWheelsDynData.getWheelRotationSpeed(w);
| ~~~~~~~~~~~~~~~~~ ^
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:677:5: error: unknown type name 'UVehicleWheel'
677 | UVehicleWheel* Wheel = MovementComponent->Wheels[w];
| ^
/home/--/Documents/carla/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp:677:47: error: no member named 'Wheels' in 'UChaosVehicleMovementComponent'
677 | UVehicleWheel* Wheel = MovementComponent->Wheels[w];
| ~~~~~~~~~~~~~~~~~ ^
11 errors generated.
``

Where has this been tested?

  • Platform(s): Linux
  • Python version(s): 3.10.12
  • Unreal Engine version(s): UE5

Possible Drawbacks

It might seem like duplicated code from the ue4-branch. Carla UE5 might also not be ready yet for this patch if too much background work has to be done.


This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant