rby1_sdk.Robot_A_CommandHandler#

class Robot_A_CommandHandler#

Bases: pybind11_object

Robot (model: Model_A) command handler.

Handles robot command execution and provides status monitoring.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

cancel(self)

Cancel the command execution.

get(self)

Wait for the command execution and get feedback

get_status(self)

Get gRPC status

is_done(self)

Check if the command execution is complete.

wait(self)

Wait for the command execution to complete.

wait_for(self, timeout_ms)

Wait for the command execution with timeout.

cancel(self: rby1_sdk.Robot_A_CommandHandler) None#

Cancel the command execution.

get(self: rby1_sdk.Robot_A_CommandHandler) rby1_sdk.RobotCommandFeedback#

Wait for the command execution and get feedback

Returns:

Current feedback information.

Return type:

RobotCommandFeedback

get_status(self: rby1_sdk.Robot_A_CommandHandler) bool#

Get gRPC status

is_done(self: rby1_sdk.Robot_A_CommandHandler) bool#

Check if the command execution is complete.

Returns:

True if command is complete, False otherwise.

Return type:

bool

wait(self: rby1_sdk.Robot_A_CommandHandler) None#

Wait for the command execution to complete.

This method blocks until the command is done or cancelled.

wait_for(self: rby1_sdk.Robot_A_CommandHandler, timeout_ms: int) bool#

Wait for the command execution with timeout.

Parameters:

timeout_ms (int) – Timeout in milliseconds.

Returns:

True if command completed, False if timeout.

Return type:

bool