get_current_tool()
Features
Returns the currently set tool information among the current safety setting parameters.
Parameters
None
Return
Value | Data Types | Description |
---|---|---|
ret | class.config_tool_symbol | Tool settup information |
Class
class.config_tool_symbol | ||
Field | Data Types | Description |
---|---|---|
obj | list | Object information for that class |
symbol | string | Tool name |
tool | class.config_tool | Tool information |
class.config_tool | ||
Field | Data Types | Description |
---|---|---|
obj | list | Object information for that class |
weight | float | Tool Mass |
xyz | float[3] | Center of gravity information |
inertia | float[6] | Inertia Information |
Example
ret = get_current_tool()
print(ret.symbol) ## tool symbol
print(ret.tool.weight) ## tool weight
Related commands
- None