IC8 Python API:RLPy RDeviceSetting
Contents
- 1 Description
- 2 Constructor & Destructor
- 3 Member Functions
- 3.1 GetAxisXYZ (self, eAxis)
- 3.2 GetCoordinateOffset (self, fRotation, vTranslation)
- 3.3 GetCoordinateSystem (self)
- 3.4 GetInitialHipRotation (self)
- 3.5 GetMocapCoordinateFrontAxis (self)
- 3.6 GetMocapCoordinateSystem (self)
- 3.7 GetMocapCoordinateUpAxis (self)
- 3.8 GetPositionSetting (self)
- 3.9 GetRotationSetting (self)
- 3.10 SetCoordinateOffset (self, fRotation, vTranslation)
- 3.11 SetCoordinateSystem (self, eCoordinateSystem)
- 3.12 SetInitialHipRotation (self, kInitialHipRotation)
- 3.13 SetMocapCoordinate (self, eUpAxis, eFrontAxis, eCoordinateSystem)
- 4 Properties
Description
This class is the device setting used in the device class, such as RBodyDevice and RHandDevice. Provide methods to set the coordinate system (Lefthand/Righthand),axis orientation(Up & Front), offset data(Rotation & Position offset) and setting data(RPositionSetting & RRotationSetting).
Constructor & Destructor
__init__ (self, *args)
Initializes a new device setting instance.
Parameters
- args
Member Functions
GetAxisXYZ (self, eAxis)
Get vector of an axis.
Parameters
- eAxis
GetCoordinateOffset (self, fRotation, vTranslation)
Get translation and rotation offset of the mocap coordinate.
Parameters
- fRotation
- vTranslation
GetCoordinateSystem (self)
Get coordinate system. ( Default value is ECoordinateSystem::RIGHT_HAND )
GetInitialHipRotation (self)
Gets intial hip rotation.
GetMocapCoordinateFrontAxis (self)
Get front-axis of mocap coordinate. ( Default value is ECoordinateAxis::NEGATIVE_Y )
GetMocapCoordinateSystem (self)
Get coordinate system of mocap coordinate. ( Default value is ECoordinateSystem::RIGHT_HAND )
GetMocapCoordinateUpAxis (self)
Get up-axis of mocap coordinate. ( Default value is ECoordinateAxis::Z )
GetPositionSetting (self)
Get position setting.
GetRotationSetting (self)
Get rotation setting.
SetCoordinateOffset (self, fRotation, vTranslation)
Set translation and rotation offset of the mocap coordinate.
Parameters
- fRotation
- vTranslation
SetCoordinateSystem (self, eCoordinateSystem)
Set coordinate system.
Parameters
- eCoordinateSystem
SetInitialHipRotation (self, kInitialHipRotation)
It only needs to be set if the Hip default orientation is different from the world coordinate orientation.
Parameters
- kInitialHipRotation
SetMocapCoordinate (self, eUpAxis, eFrontAxis, eCoordinateSystem)
Set mocap coordinate.
Parameters
- eUpAxis
- eFrontAxis
- eCoordinateSystem
Properties
position
Position conversion settings for the device.
rotation
Rotation conversion settings for the device.
system
Coordinate-system convention used by the device, including handedness and axis orientation.
thisown
Indicates whether this SWIG proxy owns the underlying C++ object.