mrpt.core
mrpt-core Python API.
Package Contents
- class mrpt.core.Clock
C++ API: class mrpt::Clock
- static fromDouble(seconds: float) datetime.timedelta
Convert double seconds to mrpt::Clock::time_point
- static now() datetime.timedelta
Current time as mrpt::Clock::time_point
- static nowDouble() float
Current time in seconds (double)
- static toDouble(time_point: datetime.timedelta) float
Convert mrpt::Clock::time_point to double seconds
- class mrpt.core.Stringifyable
C++ API: class mrpt::Stringifyable
- asString() str
- class mrpt.core.WorkerThreadsPool(num_threads: int)
C++ API: class mrpt::WorkerThreadsPool
- property name: str
Pool name property
- clear() None
- enqueue(func: Callable) None
- pendingTasks() int
- resize(arg0: int) None
- size() int
- mrpt.core.abs_diff_double(arg0: float, arg1: float) float
Absolute difference (double)
- mrpt.core.abs_diff_float(arg0: float, arg1: float) float
Absolute difference (float)
- mrpt.core.abs_diff_int(arg0: int, arg1: int) int
Absolute difference (int)
- mrpt.core.abs_diff_long(arg0: int, arg1: int) int
Absolute difference (long)
- mrpt.core.deg2rad(arg0: float) float
Degrees to radians (double)
- mrpt.core.format1d(fmt: str, val: float) str
Printf-style format with one double argument
- mrpt.core.format1s(fmt: str, val: str) str
Printf-style format with one string argument
- mrpt.core.from_string_double(s: str, default_value: float = 0.0, throw_on_error: bool = False) float
Parse string to double; returns default_value on failure unless throw_on_error is True
- mrpt.core.from_string_int(s: str, default_value: int = 0, throw_on_error: bool = False) int
Parse string to int; returns default_value on failure unless throw_on_error is True
- mrpt.core.get_env(var_name: str, default_val: str = '') str
Read an environment variable as string; returns default_val if not set
- mrpt.core.get_env_double(var_name: str, default_val: float = 0.0) float
Read an environment variable as double; returns default_val if not set
- mrpt.core.get_env_int(var_name: str, default_val: int = 0) int
Read an environment variable as int; returns default_val if not set
- mrpt.core.rad2deg(arg0: float) float
Radians to degrees (double)
- mrpt.core.reverse_bytes_i16(arg0: int) int
Reverse endianness for int16
- mrpt.core.reverse_bytes_i32(arg0: int) int
Reverse endianness for int32
- mrpt.core.reverse_bytes_i64(arg0: int) int
Reverse endianness for int64
- mrpt.core.reverse_bytes_u16(arg0: int) int
Reverse endianness for uint16
- mrpt.core.reverse_bytes_u32(arg0: int) int
Reverse endianness for uint32
- mrpt.core.reverse_bytes_u64(arg0: int) int
Reverse endianness for uint64