udaan.core.types module¶
Type definitions for Udaan library.
This module defines type aliases and enumerations used throughout the codebase to ensure type safety and improve code readability.
- class udaan.core.types.ForceType[source]¶
Bases:
EnumForce application type on quadrotor body.
Defines how forces are applied to the physics simulation.
- WRENCH¶
Apply net force and torque at center of mass
- PROP_FORCES¶
Apply individual forces at propeller locations
- PROP_FORCES = 2¶
- WRENCH = 1¶
- class udaan.core.types.InputType[source]¶
Bases:
EnumInput command type for quadrotor control.
Defines what type of command the controller generates.
- WRENCH¶
Force and torque vector [thrust, tau_x, tau_y, tau_z]
- PROP_FORCES¶
Individual propeller forces [f1, f2, f3, f4]
- ACCELERATION¶
Desired acceleration command [ax, ay, az]
- ACCELERATION = 3¶
- PROP_FORCES = 2¶
- WRENCH = 1¶
- udaan.core.types.Mat3¶
3x3 matrix (rotation matrix, inertia tensor, etc.)
- udaan.core.types.Mat4¶
4x4 matrix (homogeneous transformation)
- udaan.core.types.Quaternion¶
Quaternion in [w, x, y, z] format (scalar-first convention)