class documentation
class FreeMotionButtonRosWrapper:
Constructor: FreeMotionButtonRosWrapper(hardware_version)
Undocumented
| Method | __init__ |
Undocumented |
| Method | get |
Waits for the button to be pressed and returns the press time. Returns 0 if no press is detected after the timeout duration. |
| Method | is |
Button press state |
| Method | wait |
Waits until a specific action occurs and returns true. Returns false if the timeout is reached. |
| Method | wait |
Returns the detected action. Returns ButtonAction.NO_ACTION if the timeout is reached without action. |
| Instance Variable | callback |
Undocumented |
| Property | hardware |
Undocumented |
| Property | state |
Get the button state from the ButtonAction class |
| Method | __callback |
Undocumented |
| Method | __check |
Undocumented |
| Method | __clear |
Undocumented |
| Method | __get |
Undocumented |
| Method | __set |
Undocumented |
| Method | __wait |
Undocumented |
| Method | __wait |
Undocumented |
| Instance Variable | __action |
Undocumented |
| Instance Variable | __action |
Undocumented |
| Instance Variable | __free |
Undocumented |
| Instance Variable | __free |
Undocumented |
| Instance Variable | __hardware |
Undocumented |
Waits for the button to be pressed and returns the press time. Returns 0 if no press is detected after the timeout duration.
| Parameters | |
| timeout:foat | Undocumented |
| Returns | |
| float | Undocumented |
Waits until a specific action occurs and returns true. Returns false if the timeout is reached.
| Parameters | |
| action:int self.__save_button_topic | int value from the ButtonAction class |
| timeout:float ref_count | Undocumented |
| Returns | |
| int | Returns the detected action, or ButtonAction.NO_ACTION if the timeout is reached without any action. |