class ToolsRosWrapper(AbstractNiryoRosWrapper):
Constructor: ToolsRosWrapper(service_timeout)
Undocumented
Method | __init__ |
Undocumented |
Method | activate |
Activates electromagnet associated to electromagnet_id on pin_id |
Method | close |
Closes gripper with a speed 'speed' |
Method | deactivate |
Deactivates electromagnet associated to electromagnet_id on pin_id |
Method | enable |
Enables or disables the TCP function (Tool Center Point). If activation is requested, the last recorded TCP value will be applied. The default value depends on the gripper equipped. If deactivation is requested, the TCP will be coincident with the tool_link. |
Method | get |
Uses /niryo_robot_tools_commander/current_id topic to get current tool id |
Method | grasp |
Grasps with the tool linked to tool_id. This action corresponds to - Close gripper for Grippers - Pull Air for Vacuum pump - Activate for Electromagnet |
Method | open |
Opens gripper with a speed 'speed' |
Method | pull |
Pulls air |
Method | push |
Pulls air |
Method | release |
Releases with the tool associated to tool_id. This action corresponds to - Open gripper for Grippers - Push Air for Vacuum pump - Deactivate for Electromagnet |
Method | reset |
Resets the TCP (Tool Center Point) transformation. The TCP will be reset according to the tool equipped. |
Method | set |
Activates the TCP function (Tool Center Point) and defines the transformation between the tool_link frame and the TCP frame. |
Method | setup |
Setups electromagnet on pin |
Method | tool |
Reboots the motor of the tool equipped. Useful when an Overload error occurs. (cf HardwareStatus) |
Method | update |
Calls service niryo_robot_tools_commander/update_tool to update tool |
Method | __deal |
Undocumented |
Method | __deal |
Undocumented |
Method | __deal |
Undocumented |
Instance Variable | __current |
Undocumented |
Instance Variable | __tool |
Undocumented |
Activates electromagnet associated to electromagnet_id on pin_id
Parameters | |
pin | Pin ID |
Returns | |
(int, str) | status, message |
Closes gripper with a speed 'speed'
Parameters | |
speed:int | Default -> 500 |
max | Default -> 100 |
hold | Default -> 20 |
Returns | |
(int, str) | status, message |
Deactivates electromagnet associated to electromagnet_id on pin_id
Parameters | |
pin | Pin ID |
Returns | |
(int, str) | status, message |
Enables or disables the TCP function (Tool Center Point). If activation is requested, the last recorded TCP value will be applied. The default value depends on the gripper equipped. If deactivation is requested, the TCP will be coincident with the tool_link.
Parameters | |
enable:Bool | True to enable, False otherwise. |
Returns | |
(int, str) | status, message |
Grasps with the tool linked to tool_id. This action corresponds to - Close gripper for Grippers - Pull Air for Vacuum pump - Activate for Electromagnet
Parameters | |
pin | [Only required for electromagnet] Pin ID of the electromagnet |
Returns | |
(int, str) | status, message |
Opens gripper with a speed 'speed'
Parameters | |
speed:int | Default -> 500 |
max | Default -> 100 |
hold | Default -> 20 |
Returns | |
(int, str) | status, message |
Releases with the tool associated to tool_id. This action corresponds to - Open gripper for Grippers - Push Air for Vacuum pump - Deactivate for Electromagnet
Parameters | |
pin | [Only required for electromagnet] Pin ID of the electromagnet |
Returns | |
(int, str) | status, message |
Resets the TCP (Tool Center Point) transformation. The TCP will be reset according to the tool equipped.
Returns | |
(int, str) | status, message |
Activates the TCP function (Tool Center Point) and defines the transformation between the tool_link frame and the TCP frame.
Parameters | |
x:float | |
y:float | |
z:float | |
roll:float | |
pitch:float | |
yaw:float | |
Returns | |
(int, str) | status, message |
Reboots the motor of the tool equipped. Useful when an Overload error occurs. (cf HardwareStatus)
Returns | |
(bool, str) | success, message |
Calls service niryo_robot_tools_commander/update_tool to update tool
Returns | |
(int, str) | status, message |
Undocumented