Link Search Menu Expand Document

arena-py API v1.0.1

arena.attributes.rotation

Rotation attribute class to manage its properties in the ARENA: 3D object rotation in quaternion representation; Right-handed coordinate system. Euler degrees are deprecated in wire message format. Usage: rotation=Rotation(...) or rotation=Rotation(x,y,z,w) or rotation=Rotation(x,y,z) or rotation=(x,y,z,w) or rotation=(x,y,z)

Parameters
  • float|Iterable|Mapping w: w Defaults to '1' (optional)
  • float x: x Defaults to '0' (optional)
  • float y: y Defaults to '0' (optional)
  • float z: z Defaults to '0' (optional)
Rotation(x=None, y=None, z=None, w=None)
is_quaternion
euler
quaternion
array
def check_euler(self, x, y, z):
def check_quaternion(self, x, y, z, w):
@classmethod
def q2e(cls, q):

quaternions to euler (degrees)

@classmethod
def e2q(cls, e):

euler (degrees) to quaternions