rby1_sdk.create_robot#

create_robot(address: str, model_name: Literal['a']) Robot_A[source]#
create_robot(address: str, model_name: Literal['m']) Robot_M
create_robot(address: str, model_name: Literal['ub']) Robot_UB
create_robot(address: str, model_name: str) Robot_A | Robot_M | Robot_UB

Create a robot instance for a specific RB-Y1 model.

This function is a thin wrapper around the internal _bindings._create_robot and provides IDE/type checker support via overloads.

Parameters:
  • address (str) – Network address of the robot, e.g. “192.168.1.100:50051”.

  • model_name (str) –

    Robot model identifier (case-insensitive). Supported values are:

    • ”a” → Robot_A

    • ”m” → Robot_M

    • ”ub” → Robot_UB

Returns:

Configured robot instance corresponding to the specified model.

Return type:

Robot_A or Robot_M or Robot_UB

Raises:

RuntimeError – If the model name is unknown or unsupported.

See also

_bindings.create_robot_a

Directly create a Robot A instance.

_bindings.create_robot_m

Directly create a Robot M instance.

_bindings.create_robot_ub

Directly create a Robot UB instance.

Examples

>>> from rby1_sdk import create_robot
>>> robot = create_robot("192.168.1.100:50051", "a")
>>> robot = create_robot("192.168.1.100:50051", "ub")