3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

get_current_rotm()

Definition

get_current_rotm(ref)

Features

This function returns the direction and matrix of the current tool based on the ref coordinate.

Parameters

Parameter Name

Data Type

Default Value

Description

ref

Int

DR_BASE

reference coordinate

  • DR_BASE : base coordinate

  • DR_WORLD : world coordinate

Return

Value

Description

float[3][3]

Rotation matrix

Exception

Exception

Description

DR_Error (DR_ERROR_RUNTIME)

C extension module error occurred

Example

Python
rotm1 = get_current_rotm(DR_WORLD) # rotm1 : rotation matrix(3x3) based on the world coordinate
# The result value is stored in a 3x3 matrix
image2021-11-4_14-32-52.png

Keyword

get / current / rotm / get_ / get_current