Breadcrumbs

get_current_rotm()

정의

get_current_rotm(ref)

기능

입력된 기준좌표계(ref)에 해당하는 현재 툴의 회전행렬을 리턴합니다.

인수

인수명

자료형

기본값

설명

ref

Int

DR_BASE

reference coordinate

  • DR_BASE : base coordinate

  • DR_WORLD : world coordinate

리턴

설명

float[3][3]

Rotation matrix

예외

예외

설명

DR_Error (DR_ERROR_RUNTIME)

C Extension 모듈 에러 발생 시

예제

Python
rotm1 = get_current_rotm(DR_WORLD) #rotm1 : WORLD좌표계 기준 회전행렬(3x3)
# 결과값은 3X3 matrix로 저장됩니다. 
image2021-11-4_14-32-52.png