CDRFLEx.add_tool
Features
This is a function for using tool information that will be installed on the edge of the robot by registering it in advance for security reasons. The tool information registered using this function should be reset after rebooting, as it is stored in the memory. However, if it is registered the in T/P application, it can be reused, as it is added in the initialization process.
Parameter
Parameter Name | Data Type | Default Value | Description |
strSymbol | string | - | Tool Name |
fCog | float[3] | - | Center of gravity |
fWeight | float | - | Tool Weight |
fInertia | float[6] | - | Inertia information |
Return
Value | Description |
0 | Error |
1 | Success |
Example
float fCog[3] = {10, 10, 10};
float finertia[6] = { 0, 0, 0, 0, 0, 0 };
// Registers tool.
drfl.add_tool("tool#1", 5.3f, fCog, finertia);
// Selects currently mounted tool.
drfl.set_tool("tool#1");
// Releases registration of tool.
drfl.del_tool("tool#1");