Get current RPM of vehicle #4197
HarishKumar051993
started this conversation in
General
Replies: 1 comment 9 replies
-
I tried to do the same some time ago, and my conclusion was that the RPM is not exported by Carla. It's not in the snapshot ; there is also no RPC call to get it ; and therefore also no Python or C++ API. It is however easily accessible in UE4's blueprints. As a quick and dirty solution, we publish it on MQTT from the blueprints. It would be quite easy to add new RPC + C++ + Python API, but I think that it should be part of the frame snapshot. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to find a way to get the current revolutions per minute (RPM) of any wheel at a given time via the Python API.
I know I can get the throttle level and the max RPM of the engine via VehiclePhysicsControl, so in theory I could just derive the wheel RPM from there. Due to gearbox properties etc. that value will be pretty inaccurate I guess.
Is there a way to access wheel RPM via the Python API?
Beta Was this translation helpful? Give feedback.
All reactions