Utils.General

Fill in a module description here
from fastcore.utils import *
from fastcore.utils import *
import numpy as np # Scientific computing library for Python
import queue
import typing as typ
from UAV.utils.general import *

source

LeakyQueue

 LeakyQueue (maxsize:int=100, on_drop:Optional[Callable[[ForwardRef('Leaky
             Queue'),ForwardRef('object')],NoneType]]=None)

Queue that contains only the last actual items and drops the oldest one.


source

euler_to_quaternion

 euler_to_quaternion (roll:float, pitch:float, yaw:float)

Convert an Euler angle to a quaternion.

Type Details
roll float roll (rotation around x-axis) angle in radians
pitch float attitude (rotation around y-axis) angle in radians
yaw float direction (rotation around z-axis) angle in radians
Returns list orientation in quaternion [x,y,z,w] format

Run some tests