as2_python_api.tools.utils module
Different utility methods.
- as2_python_api.tools.utils.euler_from_quaternion(x: float, y: float, z: float, w: float) tuple[float, float, float]
Convert a quaternion into euler angles [roll, pitch, yaw].
roll is rotation around x in radians (counterclockwise) pitch is rotation around y in radians (counterclockwise) yaw is rotation around z in radians (counterclockwise)
- as2_python_api.tools.utils.find_spec_in_envvar(module_name: str) ModuleSpec
Search for ModuleSpec in aerostack2 modules path environment variable.
- as2_python_api.tools.utils.find_spec_in_pkg(module_name: str) ModuleSpec
Search for ModuleSpec in as2_python_api package default modules folder.
- as2_python_api.tools.utils.get_class_from_module(module_name: str) ModuleBase
Get class from module name.
source: https://docs.python.org/3.10/library/importlib.html#importing-programmatically
- as2_python_api.tools.utils.get_module_call_signature(module_name: str) Signature
Get call method signature from given module name.
- Return type:
inspect.Signature
- as2_python_api.tools.utils.path_to_list(path: nav_msgs.msg.Path) list[list[float]]
Convert path into list.