convert_rocket_u_to_virtual_u#
Class method.
- do_dpc.environments.rocket_env.rocket_utils.convert_rocket_u_to_virtual_u(u_rocket)[source]#
Converts rocket control inputs into virtual control inputs.
- The transformation follows:
u1 = Fe * cos(phi) u2 = Fe * sin(phi)
- Parameters:
u_rocket (np.ndarray) – Rocket control inputs, a 3-element array [Fe, Fs, phi_normalized].
- Returns:
- Virtual actuator inputs, a 3-element array [Fx, Fy, Fs], where:
Fx and Fy are the thrust components in the x and y directions.
Fs is the side thrust value.
- Return type:
np.ndarray