10 from .
import pinocchio_pywrap
as pin
13 if isinstance(x, pin.Motion):
17 if isinstance(x, np.ndarray):
18 if x.shape == (6, 1)
or x.shape == (6,):
19 return pin.exp6(pin.Motion(x))
20 if x.shape == (3, 1)
or x.shape == (3,):
22 raise ValueError(
'Error only 3 and 6 vectors are allowed.')
23 raise ValueError(
'Error exp is only defined for real, vector3, vector6 and pin.Motion objects.')
27 if isinstance(x, pin.SE3):
31 if isinstance(x, np.ndarray):
36 raise ValueError(
'Error only 3 and 4 matrices are allowed.')
37 raise ValueError(
'Error log is only defined for real, matrix3, matrix4 and pin.SE3 objects.')
39 __all__ = [
'exp',
'log']