10 from .
import pinocchio_pywrap_default
as pin
14 if isinstance(x, pin.Motion):
18 if isinstance(x, np.ndarray):
19 if x.shape == (6, 1)
or x.shape == (6,):
20 return pin.exp6(pin.Motion(x))
21 if x.shape == (3, 1)
or x.shape == (3,):
23 raise ValueError(
"Error only 3 and 6 vectors are allowed.")
25 "Error exp is only defined for real, vector3, vector6 and pin.Motion objects."
30 if isinstance(x, pin.SE3):
34 if isinstance(x, np.ndarray):
39 raise ValueError(
"Error only 3 and 4 matrices are allowed.")
41 "Error log is only defined for real, matrix3, matrix4 and pin.SE3 objects."
45 __all__ = [
"exp",
"log"]