pyzenbo.py_zenbo_sdk module¶
-
class
pyzenbo.py_zenbo_sdk.PyZenbo(destination, on_state_change_callback=None, on_result_callback=None)¶ Bases:
objectZenbo SDK
-
cancel_command(command, sync=True, timeout=None)¶ Cancel specific robot motion/utility command.
- Parameters
command – specifies the command number to cancel
sync – True if this command is blocking
timeout – maximum blocking time in second, None means infinity
- Returns
serial number of the command, if command is blocking also return a dict, it include two key, ‘state’ indicate execute result and ‘error’ will contain error code
-
cancel_command_all(sync=True, timeout=None)¶ Cancel all robot motion/utility commands
- Parameters
sync – True if this command is blocking
timeout – maximum blocking time in second, None means infinity
- Returns
serial number of the command, if command is blocking also return a dict, it include two key, ‘state’ indicate execute result and ‘error’ will contain error code
-
cancel_command_by_serial(serial, sync=True, timeout=None)¶ Cancel specific robot motion/utility command by using the serial number.
- Parameters
serial – specifies the command serial number to cancel
sync – True if this command is blocking
timeout – maximum blocking time in second, None means infinity
- Returns
serial number of the command, if command is blocking also return a dict, it include two key, ‘state’ indicate execute result and ‘error’ will contain error code
-
get_connection_state()¶
-
property
on_result_callback¶
-
property
on_state_change_callback¶
-
property
on_vision_callback¶
-
release()¶ Release all robot API resource :return: None
-
-
pyzenbo.py_zenbo_sdk.main()¶