I have an existing steering model created, based on measured real-life data. It tells me what the real angle of the front wheels should be, based on the torque you input onto the steering wheel (steering torque).
Hi ScienceByte,
our implementation of the steering system has the Steering wheel position as an input and the steering rack position as an output. Let me get back to you if we have a solution for a force input.
I’m trying to recreate a real life car for some research, and I already have a python script that takes a torque value from the steering wheel as input and returns a steering angle value.
It also already takes into account the speed that the car is travelling at I believe.
So what I am trying to do is to have this script directly control the steering angle, without using Beamng’s built-in torque and steering modelling.
in BeamNG the steering works by getting the steering angle from controller or steering wheel. This sets the state (target position) of the steering hydros in the steering rack. The force feedback is directly measured in the steering hydros and sent back to a FFB wheel if available.
For your case. If you already have a logic in Python you can send your resulting steering position by using the beamngpy command vehicle.control(steering=...)
steering (float | None) – Rotation of the steering wheel, from -1.0 to 1.0. It is a non dimensional input and represents the steering rack travel specified by the steering hydros.
Right now there is no force feedback sent by BeamNGpy and also not possibility to set up a tight coupling between BeamNG and python by using the beamngpy API. If this is necessary, you can use the FMU or Simulink Bridge options.