Definition
get_current_velx(ref)
Features
This function returns the current tool velocity based on the ref coordinate.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
ref |
Int |
DR_BASE |
reference coordinate
|
Return
|
Value |
Description |
|---|---|
|
float[6] |
Tool velocity |
Exception
|
Exception |
Description |
|---|---|
|
DR_Error (DR_ERROR_RUNTIME) |
C extension module error occurred |
Example
Python
velx1 = get_current_velx()
# velx1 : velocity based on the base coordinate(default value)
velx2 = get_current_velx(DR_BASE)
# velx2 (=velx1) : velocity based on the base coordinate
velx3 = get_current_velx(DR_WORLD)
#velx3 : velocity based on the world coordinate