rb_sdk package#
Subpackages#
- Base
ConnectOptionsQueuedSampleRBBaseSDKRBBaseSDK.close()RBBaseSDK.close_all_for_pid()RBBaseSDK.connect()RBBaseSDK.connect_can()RBBaseSDK.disconnect()RBBaseSDK.disconnect_can()RBBaseSDK.instance()RBBaseSDK.log()RBBaseSDK.publish()RBBaseSDK.query()RBBaseSDK.query_all()RBBaseSDK.query_one()RBBaseSDK.receive_one()RBBaseSDK.register_zenoh_queryable()RBBaseSDK.register_zenoh_subscriber()RBBaseSDK.transmit_can()RBBaseSDK.zenoh_queryable()RBBaseSDK.zenoh_subscribe()
RawReply
- Manipulate
MechMindClientMechMindPoseMechMindVisionResponsePhotoneoAckResponsePhotoneoClientPhotoneoGripperCommandPhotoneoObjectPoseResponsePhotoneoPosePhotoneoQuaternionPosePhotoneoSolutionResponsePhotoneoTrajectoryResponsePhotoneoTrajectorySegmentPhotoneoWaypointPickitClientPickitObjectDetectionPickitPickPointDataPickitPosePostureRBManipulateConfigSDKRBManipulateConfigSDK.call_config_controlbox()RBManipulateConfigSDK.call_config_flangeoption()RBManipulateConfigSDK.call_config_globpinlist()RBManipulateConfigSDK.call_config_gripperattach()RBManipulateConfigSDK.call_config_network()RBManipulateConfigSDK.call_config_robotarm()RBManipulateConfigSDK.call_config_toollist()RBManipulateConfigSDK.call_datalog_done()RBManipulateConfigSDK.call_datalog_start()RBManipulateConfigSDK.call_speedbar()RBManipulateConfigSDK.call_vibration_motion_off()RBManipulateConfigSDK.call_vibration_motion_on()RBManipulateConfigSDK.pop_gravity_vector()RBManipulateConfigSDK.pub_realtime_index()RBManipulateConfigSDK.save_area_parameter()RBManipulateConfigSDK.save_basic_joint_impedance()RBManipulateConfigSDK.save_collision_parameter()RBManipulateConfigSDK.save_deflection_compensation()RBManipulateConfigSDK.save_direct_teach_sensitivity()RBManipulateConfigSDK.save_globpin_parameter()RBManipulateConfigSDK.save_gravity_parameter()RBManipulateConfigSDK.save_gripper_attachment()RBManipulateConfigSDK.save_joint_kinematic_limit()RBManipulateConfigSDK.save_robot_code()RBManipulateConfigSDK.save_selfcoll_parameter()RBManipulateConfigSDK.save_tool_list_parameter()RBManipulateConfigSDK.save_user_frame_parameter()RBManipulateConfigSDK.set_ascii_functioncall()RBManipulateConfigSDK.set_din_function_mask()RBManipulateConfigSDK.set_dout_function_mask()RBManipulateConfigSDK.set_external_axis_sync()RBManipulateConfigSDK.set_fixed_speed()RBManipulateConfigSDK.set_freedrive()RBManipulateConfigSDK.set_jacob_speed_mode()RBManipulateConfigSDK.set_joint_impedance()RBManipulateConfigSDK.set_joint_reference_filter()RBManipulateConfigSDK.set_master_mode()RBManipulateConfigSDK.set_move_break()RBManipulateConfigSDK.set_oprange_check()RBManipulateConfigSDK.set_out_collision_para()RBManipulateConfigSDK.set_program_flow_manage()RBManipulateConfigSDK.set_realtime_index()RBManipulateConfigSDK.set_remote_tcp()RBManipulateConfigSDK.set_self_collision_blind()RBManipulateConfigSDK.set_self_collision_para()RBManipulateConfigSDK.set_self_vibration_mode()RBManipulateConfigSDK.set_shift()RBManipulateConfigSDK.set_shift_landmark()RBManipulateConfigSDK.set_tcp_speed_bound()RBManipulateConfigSDK.set_timeconstraint()RBManipulateConfigSDK.set_toollist_num()RBManipulateConfigSDK.set_userframe_3points()RBManipulateConfigSDK.set_userframe_6dof()RBManipulateConfigSDK.set_userframe_num()RBManipulateConfigSDK.set_userframe_tcp()RBManipulateConfigSDK.set_wrist_singularity_mode()
RBManipulateFlangeSDKRBManipulateGetDataSDKRBManipulateIOSDKRBManipulateIOSDK.call_ext_aout()RBManipulateIOSDK.call_ext_dout()RBManipulateIOSDK.call_ext_dout_bitcombination()RBManipulateIOSDK.call_ext_dout_pulse()RBManipulateIOSDK.call_ext_dout_toggle()RBManipulateIOSDK.call_flange_dout()RBManipulateIOSDK.call_flange_power()RBManipulateIOSDK.call_multiple_ext_aout()RBManipulateIOSDK.call_multiple_ext_dout()RBManipulateIOSDK.call_multiple_ext_dout_bitcombination()RBManipulateIOSDK.call_multiple_ext_dout_pulse()RBManipulateIOSDK.call_multiple_ext_dout_toggle()RBManipulateIOSDK.call_multiple_flange_dout()RBManipulateIOSDK.call_multiple_side_aout()RBManipulateIOSDK.call_multiple_side_dout()RBManipulateIOSDK.call_multiple_side_dout_bitcombination()RBManipulateIOSDK.call_multiple_side_dout_pulse()RBManipulateIOSDK.call_multiple_side_dout_toggle()RBManipulateIOSDK.call_side_aout()RBManipulateIOSDK.call_side_dout()RBManipulateIOSDK.call_side_dout_bitcombination()RBManipulateIOSDK.call_side_dout_pulse()RBManipulateIOSDK.call_side_dout_toggle()RBManipulateIOSDK.save_after_action()RBManipulateIOSDK.save_ext_din_filter()RBManipulateIOSDK.save_ext_din_function()RBManipulateIOSDK.save_ext_dout_function()RBManipulateIOSDK.save_flange_din_filter()RBManipulateIOSDK.save_flange_din_function()RBManipulateIOSDK.save_flange_dout_function()RBManipulateIOSDK.save_network_parameter()RBManipulateIOSDK.save_side_din_filter()RBManipulateIOSDK.save_side_din_function()RBManipulateIOSDK.save_side_dout_function()RBManipulateIOSDK.save_user_script()
RBManipulateMaintenanceSDKRBManipulateMaintenanceSDK.call_force_eater_on()RBManipulateMaintenanceSDK.call_joint_bno_change()RBManipulateMaintenanceSDK.call_joint_brake()RBManipulateMaintenanceSDK.call_joint_encoder_zero()RBManipulateMaintenanceSDK.call_joint_sensor_reset()RBManipulateMaintenanceSDK.call_persist_joint_erase()RBManipulateMaintenanceSDK.call_send_can()RBManipulateMaintenanceSDK.call_shortcircuit_check()RBManipulateMaintenanceSDK.pop_can_message_check()RBManipulateMaintenanceSDK.pop_joint_big_input()RBManipulateMaintenanceSDK.pop_joint_dq_axis()RBManipulateMaintenanceSDK.pop_joint_gain_cur()RBManipulateMaintenanceSDK.pop_joint_gain_pos()RBManipulateMaintenanceSDK.pop_joint_infos()RBManipulateMaintenanceSDK.pop_joint_jam_over()RBManipulateMaintenanceSDK.pub_send_can()RBManipulateMaintenanceSDK.set_joint_big_input()RBManipulateMaintenanceSDK.set_joint_gain_cur()RBManipulateMaintenanceSDK.set_joint_gain_pos()RBManipulateMaintenanceSDK.set_joint_jam_over()
RBManipulateMoveSDKRBManipulateMoveSDK.call_admittance_force_change()RBManipulateMoveSDK.call_admittance_force_off()RBManipulateMoveSDK.call_admittance_force_on()RBManipulateMoveSDK.call_approach_j()RBManipulateMoveSDK.call_approach_l()RBManipulateMoveSDK.call_approach_stop()RBManipulateMoveSDK.call_arc_sensing_change_gain()RBManipulateMoveSDK.call_arc_sensing_change_target()RBManipulateMoveSDK.call_arc_sensing_off()RBManipulateMoveSDK.call_arc_sensing_on()RBManipulateMoveSDK.call_base_conveyor_off()RBManipulateMoveSDK.call_base_conveyor_on()RBManipulateMoveSDK.call_base_conveyor_speed()RBManipulateMoveSDK.call_move_align_tcp()RBManipulateMoveSDK.call_move_cir_axis()RBManipulateMoveSDK.call_move_cir_threepoint()RBManipulateMoveSDK.call_move_home()RBManipulateMoveSDK.call_move_j()RBManipulateMoveSDK.call_move_jb_add()RBManipulateMoveSDK.call_move_jb_clr()RBManipulateMoveSDK.call_move_jb_run()RBManipulateMoveSDK.call_move_l()RBManipulateMoveSDK.call_move_lb_add()RBManipulateMoveSDK.call_move_lb_clr()RBManipulateMoveSDK.call_move_lb_run()RBManipulateMoveSDK.call_move_pb_add()RBManipulateMoveSDK.call_move_pb_clr()RBManipulateMoveSDK.call_move_pb_run()RBManipulateMoveSDK.call_move_wait()RBManipulateMoveSDK.call_move_xb_add()RBManipulateMoveSDK.call_move_xb_clr()RBManipulateMoveSDK.call_move_xb_run()RBManipulateMoveSDK.call_online_j()RBManipulateMoveSDK.call_online_l()RBManipulateMoveSDK.call_servo_j()RBManipulateMoveSDK.call_servo_l()RBManipulateMoveSDK.call_servo_t()RBManipulateMoveSDK.call_smoothjog_j()RBManipulateMoveSDK.call_smoothjog_l()RBManipulateMoveSDK.call_smoothjog_stop()RBManipulateMoveSDK.call_tcp_weaving_bezier_off()RBManipulateMoveSDK.call_tcp_weaving_bezier_on()RBManipulateMoveSDK.call_tcp_weaving_off()RBManipulateMoveSDK.call_tcp_weaving_on()RBManipulateMoveSDK.call_tickjog_j()RBManipulateMoveSDK.call_tickjog_l()RBManipulateMoveSDK.call_timestamp_j()RBManipulateMoveSDK.call_wrapper_online_l_off()RBManipulateMoveSDK.call_wrapper_online_l_on()RBManipulateMoveSDK.call_wrapper_servo_l_off()RBManipulateMoveSDK.call_wrapper_servo_l_on()RBManipulateMoveSDK.pub_online_j()RBManipulateMoveSDK.pub_online_l()RBManipulateMoveSDK.pub_servo_j()RBManipulateMoveSDK.pub_servo_l()RBManipulateMoveSDK.pub_servo_t()RBManipulateMoveSDK.pub_timestamp_j()RBManipulateMoveSDK.pub_wrapper_online_l_off()RBManipulateMoveSDK.pub_wrapper_online_l_on()RBManipulateMoveSDK.pub_wrapper_servo_l_off()RBManipulateMoveSDK.pub_wrapper_servo_l_on()
RBManipulatePointSDKRBManipulateProgramSDKRBManipulateProgramSDK.call_coredata_pub_frequency()RBManipulateProgramSDK.call_halt()RBManipulateProgramSDK.call_pause()RBManipulateProgramSDK.call_program_after()RBManipulateProgramSDK.call_program_before()RBManipulateProgramSDK.call_resume()RBManipulateProgramSDK.folder_finish_at()RBManipulateProgramSDK.position_home()RBManipulateProgramSDK.set_begin()RBManipulateProgramSDK.set_pin_point_or_joint()RBManipulateProgramSDK.setting()RBManipulateProgramSDK.tool_out()
RBManipulateSDKRBManipulateSDK.before_close()RBManipulateSDK.configRBManipulateSDK.connect()RBManipulateSDK.flangeRBManipulateSDK.get_dataRBManipulateSDK.ioRBManipulateSDK.maintenanceRBManipulateSDK.moveRBManipulateSDK.move_finish_at_stop()RBManipulateSDK.pointRBManipulateSDK.programRBManipulateSDK.safetyRBManipulateSDK.serviceRBManipulateSDK.stateRBManipulateSDK.vision
RBManipulateSafetySDKRBManipulateServiceSDKRBManipulateServiceSDK.call_calib_tcp_orientation()RBManipulateServiceSDK.call_calib_tcp_position()RBManipulateServiceSDK.call_communication_para_eipext()RBManipulateServiceSDK.call_communication_para_eipint()RBManipulateServiceSDK.call_communication_para_grpc()RBManipulateServiceSDK.call_communication_para_mbus()RBManipulateServiceSDK.call_communication_para_mqtt()RBManipulateServiceSDK.call_communication_para_opcua()RBManipulateServiceSDK.call_communication_para_pnet()RBManipulateServiceSDK.call_communication_para_restapi()RBManipulateServiceSDK.call_communication_para_rtde()RBManipulateServiceSDK.call_communication_para_tcpcmd()RBManipulateServiceSDK.call_communication_para_tcpdatda()RBManipulateServiceSDK.call_communication_para_udpcmd()RBManipulateServiceSDK.call_communication_para_udpdatda()RBManipulateServiceSDK.call_config_communication()RBManipulateServiceSDK.call_config_extaxis()RBManipulateServiceSDK.call_config_extft()RBManipulateServiceSDK.call_config_softplc()RBManipulateServiceSDK.call_config_weld()RBManipulateServiceSDK.call_datalog_get()RBManipulateServiceSDK.call_extaxis_calib_add()RBManipulateServiceSDK.call_extaxis_calib_clr()RBManipulateServiceSDK.call_extaxis_calib_run()RBManipulateServiceSDK.call_extaxis_para_basic()RBManipulateServiceSDK.call_gripper_action()RBManipulateServiceSDK.call_move_gcode()RBManipulateServiceSDK.call_move_macro()RBManipulateServiceSDK.call_move_push()RBManipulateServiceSDK.call_pattern_off()RBManipulateServiceSDK.call_pattern_on()RBManipulateServiceSDK.call_replay_motion_list()RBManipulateServiceSDK.call_replay_motion_rec_start()RBManipulateServiceSDK.call_replay_motion_rec_stop()RBManipulateServiceSDK.call_replay_motion_run()RBManipulateServiceSDK.call_timer_function()RBManipulateServiceSDK.call_weld_arc_off()RBManipulateServiceSDK.call_weld_arc_on()RBManipulateServiceSDK.call_weld_gas()RBManipulateServiceSDK.call_weld_wire()RBManipulateServiceSDK.pub_gripper_action()RBManipulateServiceSDK.save_extft_parameter()RBManipulateServiceSDK.save_softplc_parameter()RBManipulateServiceSDK.save_weld_parameter()RBManipulateServiceSDK.set_extft_software_nulling()
RBManipulateStateSDKRBManipulateVisionSDKRBManipulateVisionSDK.before_close()RBManipulateVisionSDK.execute_mechmind_connect()RBManipulateVisionSDK.execute_mechmind_get_poses()RBManipulateVisionSDK.execute_mechmind_set_recipe()RBManipulateVisionSDK.execute_mechmind_trigger()RBManipulateVisionSDK.execute_mechmind_trigger_and_get_poses()RBManipulateVisionSDK.execute_photoneo_connect()RBManipulateVisionSDK.execute_photoneo_get_object_pose()RBManipulateVisionSDK.execute_photoneo_get_trajectory()RBManipulateVisionSDK.execute_photoneo_initialize()RBManipulateVisionSDK.execute_photoneo_move_waypoints()RBManipulateVisionSDK.execute_photoneo_scan()RBManipulateVisionSDK.execute_photoneo_solution_ask()RBManipulateVisionSDK.execute_photoneo_solution_change()RBManipulateVisionSDK.execute_photoneo_solution_start()RBManipulateVisionSDK.execute_photoneo_solution_stop()RBManipulateVisionSDK.execute_pickit_build_background()RBManipulateVisionSDK.execute_pickit_capture_image()RBManipulateVisionSDK.execute_pickit_check_mode()RBManipulateVisionSDK.execute_pickit_compute_calib()RBManipulateVisionSDK.execute_pickit_configure()RBManipulateVisionSDK.execute_pickit_configure_calib()RBManipulateVisionSDK.execute_pickit_connect()RBManipulateVisionSDK.execute_pickit_find_calib_plate()RBManipulateVisionSDK.execute_pickit_get_pick_point_data()RBManipulateVisionSDK.execute_pickit_look_for_objects()RBManipulateVisionSDK.execute_pickit_look_for_objects_with_retries()RBManipulateVisionSDK.execute_pickit_next_object()RBManipulateVisionSDK.execute_pickit_process_image()RBManipulateVisionSDK.execute_pickit_save_active_product()RBManipulateVisionSDK.execute_pickit_save_active_setup()RBManipulateVisionSDK.execute_pickit_save_snapshot()RBManipulateVisionSDK.execute_pickit_set_cylinder_dim()RBManipulateVisionSDK.execute_pickit_shutdown_system()RBManipulateVisionSDK.execute_pickit_update_robot_pose()RBManipulateVisionSDK.execute_pickit_validate_calib()RBManipulateVisionSDK.vision()
- Program
RBProgramSDKRBProgramSDK.alarm()RBProgramSDK.alarm_or_halt()RBProgramSDK.all_pause()RBProgramSDK.all_stop()RBProgramSDK.before_close()RBProgramSDK.call_event_tree()RBProgramSDK.change_program()RBProgramSDK.debug_variables()RBProgramSDK.get_digital_input()RBProgramSDK.get_rpc()RBProgramSDK.interface()RBProgramSDK.log()RBProgramSDK.make_script()RBProgramSDK.plugin_execute()RBProgramSDK.set_variables()RBProgramSDK.simple_wait()RBProgramSDK.user_input()RBProgramSDK.user_select()RBProgramSDK.wait()
RpcManagerRpcResultcall_event_tree()execute_mc_read()execute_mc_write()execute_modbus_read()execute_modbus_write()execute_socket_connect()execute_socket_read()execute_socket_write()execute_xgt_read()execute_xgt_write()
- Plugin Program Context
PluginProgramContextPluginProgramContext.begin_execution()PluginProgramContext.check_stop()PluginProgramContext.control_topicPluginProgramContext.done()PluginProgramContext.end_execution()PluginProgramContext.exec_robot_modelPluginProgramContext.executor_state()PluginProgramContext.get_variable()PluginProgramContext.in_executePluginProgramContext.is_paused()PluginProgramContext.is_stopped()PluginProgramContext.on_execute()PluginProgramContext.on_executor_state_change()PluginProgramContext.pause()PluginProgramContext.plugin_idPluginProgramContext.set_execute_handler()PluginProgramContext.set_state_change_handler()PluginProgramContext.set_variable()PluginProgramContext.start()PluginProgramContext.startedPluginProgramContext.stop()
PluginStopped
- Amr
RBAmrAccessorySDKRBAmrCapabilitySDKRBAmrCapabilitySDK.get_capability_camera()RBAmrCapabilitySDK.get_capability_dock()RBAmrCapabilitySDK.get_capability_imu()RBAmrCapabilitySDK.get_capability_lidar2d()RBAmrCapabilitySDK.get_capability_lidar3d()RBAmrCapabilitySDK.get_capability_safety_bumper()RBAmrCapabilitySDK.get_capability_safety_interlock()RBAmrCapabilitySDK.get_capability_safety_io()RBAmrCapabilitySDK.get_capability_safety_obstacle()RBAmrCapabilitySDK.get_capability_safety_operation_stop()RBAmrCapabilitySDK.get_capability_safety_speed_control()RBAmrCapabilitySDK.get_capability_tabos()
RBAmrControlSDKRBAmrControlSDK.control_charge_trigger()RBAmrControlSDK.control_dock()RBAmrControlSDK.control_dock_stop()RBAmrControlSDK.control_get_obs_box()RBAmrControlSDK.control_get_result_dock()RBAmrControlSDK.control_get_safety_field()RBAmrControlSDK.control_get_safety_flag()RBAmrControlSDK.control_get_safety_io()RBAmrControlSDK.control_set_avoid()RBAmrControlSDK.control_set_crossing()RBAmrControlSDK.control_set_jog()RBAmrControlSDK.control_set_led()RBAmrControlSDK.control_set_motor()RBAmrControlSDK.control_set_obs_box()RBAmrControlSDK.control_set_safety_field()RBAmrControlSDK.control_set_safety_flag()RBAmrControlSDK.control_set_safety_io()RBAmrControlSDK.control_stream_frequency()RBAmrControlSDK.control_undock()
RBAmrFileSDKRBAmrLocalizationSDKRBAmrLocalizationSDK.get_localization_result()RBAmrLocalizationSDK.localization_auto_init()RBAmrLocalizationSDK.localization_init()RBAmrLocalizationSDK.localization_random_init()RBAmrLocalizationSDK.localization_semi_auto_init()RBAmrLocalizationSDK.localization_start()RBAmrLocalizationSDK.localization_stop()
RBAmrMapSDKRBAmrMapSDK.delete_map()RBAmrMapSDK.get_current_map()RBAmrMapSDK.get_map_cloud()RBAmrMapSDK.get_map_cloud_stream()RBAmrMapSDK.get_map_list()RBAmrMapSDK.get_map_topology()RBAmrMapSDK.map_load()RBAmrMapSDK.mapping_reload()RBAmrMapSDK.mapping_save()RBAmrMapSDK.mapping_start()RBAmrMapSDK.mapping_stop()RBAmrMapSDK.set_map_cloud()RBAmrMapSDK.set_map_topology()RBAmrMapSDK.topo_reload()
RBAmrMoveSDKRBAmrMoveSDK.get_move_result()RBAmrMoveSDK.send_move_circular()RBAmrMoveSDK.send_move_goal()RBAmrMoveSDK.send_move_jog()RBAmrMoveSDK.send_move_pause()RBAmrMoveSDK.send_move_resume()RBAmrMoveSDK.send_move_rotate()RBAmrMoveSDK.send_move_stop()RBAmrMoveSDK.send_move_target()RBAmrMoveSDK.send_move_x_linear()RBAmrMoveSDK.send_move_y_linear()RBAmrMoveSDK.send_multi_enqueue()RBAmrMoveSDK.send_multi_path()RBAmrMoveSDK.send_multi_vobs()
RBAmrProgramSDKRBAmrSDKRBAmrSensorSDKRBAmrSettingSDKRBAmrSettingSDK.get_drive_param()RBAmrSettingSDK.get_pdu_param()RBAmrSettingSDK.get_robot_type()RBAmrSettingSDK.get_sensor_info()RBAmrSettingSDK.get_sensor_mode()RBAmrSettingSDK.get_setting_category()RBAmrSettingSDK.get_setting_param()RBAmrSettingSDK.get_setting_preset()RBAmrSettingSDK.get_setting_preset_list()RBAmrSettingSDK.parse_setting_param_collection()RBAmrSettingSDK.parse_setting_param_type()RBAmrSettingSDK.set_drive_param()RBAmrSettingSDK.set_pdu_param()RBAmrSettingSDK.set_robot_type()RBAmrSettingSDK.set_sensor_info()RBAmrSettingSDK.set_sensor_mode()RBAmrSettingSDK.set_setting_param()RBAmrSettingSDK.set_setting_preset()
RBAmrStatusSDK
- Plugin Call
- Rby1
RBRby1CommandHandleRBRby1CommandHandleSyncRBRby1CommandStreamRBRby1CommandStreamSyncRBRby1SDKRBRby1SDK.approach_j()RBRby1SDK.approach_l()RBRby1SDK.approach_stop()RBRby1SDK.brake_engage()RBRby1SDK.brake_release()RBRby1SDK.cancel_control()RBRby1SDK.cartesians_from_position()RBRby1SDK.connect_robot()RBRby1SDK.connect_wifi()RBRby1SDK.control()RBRby1SDK.create_command_stream()RBRby1SDK.disable_control_manager()RBRby1SDK.disconnect_robot()RBRby1SDK.disconnect_wifi()RBRby1SDK.download_file()RBRby1SDK.emergency_stop()RBRby1SDK.enable_control_manager()RBRby1SDK.factory_reset_all_parameters()RBRby1SDK.factory_reset_parameter()RBRby1SDK.get_control_manager_state()RBRby1SDK.get_dynamics()RBRby1SDK.get_fault_log_list()RBRby1SDK.get_head_position_pid_gains()RBRby1SDK.get_joint_limits()RBRby1SDK.get_last_log()RBRby1SDK.get_left_arm_position_pid_gains()RBRby1SDK.get_parameter()RBRby1SDK.get_parameter_list()RBRby1SDK.get_position_pid_gain()RBRby1SDK.get_right_arm_position_pid_gains()RBRby1SDK.get_robot_info()RBRby1SDK.get_robot_model()RBRby1SDK.get_serial_device_list()RBRby1SDK.get_state()RBRby1SDK.get_system_time()RBRby1SDK.get_time_scale()RBRby1SDK.get_torso_position_pid_gains()RBRby1SDK.get_wifi_status()RBRby1SDK.has_established_time_sync()RBRby1SDK.home_offset_reset()RBRby1SDK.import_robot_model()RBRby1SDK.is_power_on()RBRby1SDK.is_robot_connected()RBRby1SDK.is_servo_on()RBRby1SDK.log_stream_stats()RBRby1SDK.modelRBRby1SDK.move_j()RBRby1SDK.move_l()RBRby1SDK.open_serial_stream()RBRby1SDK.power_off()RBRby1SDK.power_on()RBRby1SDK.reset_all_parameters()RBRby1SDK.reset_battery_config()RBRby1SDK.reset_fault_control_manager()RBRby1SDK.reset_network_setting()RBRby1SDK.reset_odometry()RBRby1SDK.reset_parameter()RBRby1SDK.scan_wifi()RBRby1SDK.send_command()RBRby1SDK.servo_off()RBRby1SDK.servo_on()RBRby1SDK.set_battery_config()RBRby1SDK.set_battery_level()RBRby1SDK.set_led_color()RBRby1SDK.set_parameter()RBRby1SDK.set_position_d_gain()RBRby1SDK.set_position_i_gain()RBRby1SDK.set_position_p_gain()RBRby1SDK.set_position_pid_gain()RBRby1SDK.set_position_pid_gain_object()RBRby1SDK.set_preset_position()RBRby1SDK.set_system_time()RBRby1SDK.set_time_scale()RBRby1SDK.set_tool_flange_digital_output()RBRby1SDK.set_tool_flange_digital_output_dual()RBRby1SDK.set_tool_flange_output_voltage()RBRby1SDK.smooth_status()RBRby1SDK.smoothjog_j()RBRby1SDK.smoothjog_l()RBRby1SDK.smoothjog_stop()RBRby1SDK.start_log_stream()RBRby1SDK.start_state_update()RBRby1SDK.state_update_stats()RBRby1SDK.stop()RBRby1SDK.stop_log_stream()RBRby1SDK.stop_state_update()RBRby1SDK.syncRBRby1SDK.sync_time()RBRby1SDK.wait_for_control_ready()
RBRby1SerialStreamRBRby1SerialStreamSyncRBRby1SyncSDKRBRby1SyncSDK.approach_j()RBRby1SyncSDK.approach_l()RBRby1SyncSDK.approach_stop()RBRby1SyncSDK.brake_engage()RBRby1SyncSDK.brake_release()RBRby1SyncSDK.cancel_control()RBRby1SyncSDK.cartesians_from_position()RBRby1SyncSDK.connect_robot()RBRby1SyncSDK.connect_wifi()RBRby1SyncSDK.control()RBRby1SyncSDK.create_command_stream()RBRby1SyncSDK.disable_control_manager()RBRby1SyncSDK.disconnect_robot()RBRby1SyncSDK.disconnect_wifi()RBRby1SyncSDK.download_file()RBRby1SyncSDK.emergency_stop()RBRby1SyncSDK.enable_control_manager()RBRby1SyncSDK.factory_reset_all_parameters()RBRby1SyncSDK.factory_reset_parameter()RBRby1SyncSDK.get_control_manager_state()RBRby1SyncSDK.get_dynamics()RBRby1SyncSDK.get_fault_log_list()RBRby1SyncSDK.get_head_position_pid_gains()RBRby1SyncSDK.get_joint_limits()RBRby1SyncSDK.get_last_log()RBRby1SyncSDK.get_left_arm_position_pid_gains()RBRby1SyncSDK.get_parameter()RBRby1SyncSDK.get_parameter_list()RBRby1SyncSDK.get_position_pid_gain()RBRby1SyncSDK.get_right_arm_position_pid_gains()RBRby1SyncSDK.get_robot_info()RBRby1SyncSDK.get_robot_model()RBRby1SyncSDK.get_serial_device_list()RBRby1SyncSDK.get_state()RBRby1SyncSDK.get_system_time()RBRby1SyncSDK.get_time_scale()RBRby1SyncSDK.get_torso_position_pid_gains()RBRby1SyncSDK.get_wifi_status()RBRby1SyncSDK.has_established_time_sync()RBRby1SyncSDK.home_offset_reset()RBRby1SyncSDK.import_robot_model()RBRby1SyncSDK.is_power_on()RBRby1SyncSDK.is_servo_on()RBRby1SyncSDK.move_j()RBRby1SyncSDK.move_l()RBRby1SyncSDK.open_serial_stream()RBRby1SyncSDK.power_off()RBRby1SyncSDK.power_on()RBRby1SyncSDK.reset_all_parameters()RBRby1SyncSDK.reset_battery_config()RBRby1SyncSDK.reset_fault_control_manager()RBRby1SyncSDK.reset_network_setting()RBRby1SyncSDK.reset_odometry()RBRby1SyncSDK.reset_parameter()RBRby1SyncSDK.scan_wifi()RBRby1SyncSDK.send_command()RBRby1SyncSDK.servo_off()RBRby1SyncSDK.servo_on()RBRby1SyncSDK.set_battery_config()RBRby1SyncSDK.set_battery_level()RBRby1SyncSDK.set_led_color()RBRby1SyncSDK.set_parameter()RBRby1SyncSDK.set_position_d_gain()RBRby1SyncSDK.set_position_i_gain()RBRby1SyncSDK.set_position_p_gain()RBRby1SyncSDK.set_position_pid_gain()RBRby1SyncSDK.set_position_pid_gain_object()RBRby1SyncSDK.set_preset_position()RBRby1SyncSDK.set_system_time()RBRby1SyncSDK.set_time_scale()RBRby1SyncSDK.set_tool_flange_digital_output()RBRby1SyncSDK.set_tool_flange_digital_output_dual()RBRby1SyncSDK.set_tool_flange_output_voltage()RBRby1SyncSDK.smoothjog_j()RBRby1SyncSDK.smoothjog_l()RBRby1SyncSDK.smoothjog_stop()RBRby1SyncSDK.start_log_stream()RBRby1SyncSDK.start_state_update()RBRby1SyncSDK.stop()RBRby1SyncSDK.stop_log_stream()RBRby1SyncSDK.stop_state_update()RBRby1SyncSDK.sync_time()RBRby1SyncSDK.wait_for_control_ready()
RBY1ConnectionErrorRBY1Error- Submodules
ArmCommandBuilderArmCommandFeedbackBatteryInfoBatteryStateBodyCommandBuilderBodyCommandFeedbackBodyCommandFeedback.body_component_based_commandBodyCommandFeedback.cartesian_commandBodyCommandFeedback.cartesian_impedance_control_commandBodyCommandFeedback.gravity_compensation_commandBodyCommandFeedback.joint_impedance_control_commandBodyCommandFeedback.joint_position_commandBodyCommandFeedback.optimal_control_command
BodyComponentBasedCommandBuilderBodyComponentBasedCommandFeedbackCartesianCommandBuilderCartesianCommandBuilder.add_joint_position_target()CartesianCommandBuilder.add_target()CartesianCommandBuilder.set_command_header()CartesianCommandBuilder.set_minimum_time()CartesianCommandBuilder.set_stop_joint_position_tracking_error()CartesianCommandBuilder.set_stop_orientation_tracking_error()CartesianCommandBuilder.set_stop_position_tracking_error()
CartesianCommandFeedbackCartesianImpedanceControlCommandBuilderCartesianImpedanceControlCommandBuilder.add_joint_limit()CartesianImpedanceControlCommandBuilder.add_joint_position_target()CartesianImpedanceControlCommandBuilder.add_target()CartesianImpedanceControlCommandBuilder.set_command_header()CartesianImpedanceControlCommandBuilder.set_joint_damping_ratio()CartesianImpedanceControlCommandBuilder.set_joint_stiffness()CartesianImpedanceControlCommandBuilder.set_joint_torque_limit()CartesianImpedanceControlCommandBuilder.set_minimum_time()CartesianImpedanceControlCommandBuilder.set_nullspace_joint_target()CartesianImpedanceControlCommandBuilder.set_reset_reference()CartesianImpedanceControlCommandBuilder.set_stop_joint_position_tracking_error()CartesianImpedanceControlCommandBuilder.set_stop_orientation_tracking_error()CartesianImpedanceControlCommandBuilder.set_stop_position_tracking_error()
CartesianImpedanceControlCommandFeedbackColorCommandFeedbackCommandHeaderBuilderCommandHeaderFeedbackComponentBasedCommandBuilderComponentBasedCommandFeedbackControlManagerStateDynamixelBusDynamixelBus.AddrCurrentTemperatureDynamixelBus.AddrGoalCurrentDynamixelBus.AddrGoalPositionDynamixelBus.AddrGoalVibrationLevelDynamixelBus.AddrOperatingModeDynamixelBus.AddrPositionDGainDynamixelBus.AddrPositionIGainDynamixelBus.AddrPositionPGainDynamixelBus.AddrPresentButtonStateDynamixelBus.AddrPresentCurrentDynamixelBus.AddrPresentPositionDynamixelBus.AddrPresentVelocityDynamixelBus.AddrTorqueEnableDynamixelBus.ButtonStateDynamixelBus.CurrentBasedPositionControlModeDynamixelBus.CurrentControlModeDynamixelBus.DefaultBaudrateDynamixelBus.MotorStateDynamixelBus.PIDGainDynamixelBus.ProtocolVersionDynamixelBus.TorqueDisableDynamixelBus.TorqueEnableDynamixelBus.get_motor_states()DynamixelBus.get_position_d_gain()DynamixelBus.get_position_i_gain()DynamixelBus.get_position_p_gain()DynamixelBus.get_position_pid_gain()DynamixelBus.group_fast_sync_read()DynamixelBus.group_fast_sync_read_encoder()DynamixelBus.group_fast_sync_read_operating_mode()DynamixelBus.group_fast_sync_read_torque_enable()DynamixelBus.group_sync_write_operating_mode()DynamixelBus.group_sync_write_send_position()DynamixelBus.group_sync_write_send_torque()DynamixelBus.group_sync_write_torque_enable()DynamixelBus.open_port()DynamixelBus.ping()DynamixelBus.read_button_status()DynamixelBus.read_encoder()DynamixelBus.read_operating_mode()DynamixelBus.read_temperature()DynamixelBus.read_torque_enable()DynamixelBus.send_current()DynamixelBus.send_goal_position()DynamixelBus.send_operating_mode()DynamixelBus.send_torque()DynamixelBus.send_torque_enable()DynamixelBus.send_vibration()DynamixelBus.set_baud_rate()DynamixelBus.set_position_d_gain()DynamixelBus.set_position_i_gain()DynamixelBus.set_position_p_gain()DynamixelBus.set_position_pid_gain()DynamixelBus.set_torque_constant()
EMOInfoEMOStateFTSensorDataFeedbackGravityCompensationCommandBuilderGravityCompensationCommandFeedbackHeadCommandBuilderHeadCommandFeedbackImpedanceControlCommandBuilderImpedanceControlCommandBuilder.set_command_header()ImpedanceControlCommandBuilder.set_damping_ratio()ImpedanceControlCommandBuilder.set_link_name()ImpedanceControlCommandBuilder.set_reference_link_name()ImpedanceControlCommandBuilder.set_rotation_weight()ImpedanceControlCommandBuilder.set_transformation()ImpedanceControlCommandBuilder.set_translation_weight()
ImpedanceControlCommandFeedbackJogCommandBuilderJogCommandFeedbackJointGroupPositionCommandBuilderJointGroupPositionCommandBuilder.set_acceleration_limit()JointGroupPositionCommandBuilder.set_command_header()JointGroupPositionCommandBuilder.set_joint_names()JointGroupPositionCommandBuilder.set_minimum_time()JointGroupPositionCommandBuilder.set_position()JointGroupPositionCommandBuilder.set_velocity_limit()
JointGroupPositionCommandFeedbackJointImpedanceControlCommandBuilderJointImpedanceControlCommandBuilder.set_acceleration_limit()JointImpedanceControlCommandBuilder.set_command_header()JointImpedanceControlCommandBuilder.set_damping_ratio()JointImpedanceControlCommandBuilder.set_minimum_time()JointImpedanceControlCommandBuilder.set_position()JointImpedanceControlCommandBuilder.set_stiffness()JointImpedanceControlCommandBuilder.set_torque_limit()JointImpedanceControlCommandBuilder.set_velocity_limit()
JointImpedanceControlCommandFeedbackJointInfoJointPositionCommandBuilderJointPositionCommandFeedbackJointStateJointState.FETStateJointState.InitializationStateJointState.RunStateJointState.currentJointState.fet_stateJointState.init_stateJointState.is_readyJointState.motor_stateJointState.motor_typeJointState.positionJointState.power_onJointState.run_stateJointState.target_feedback_gainJointState.target_feedforward_torqueJointState.target_positionJointState.target_velocityJointState.temperatureJointState.time_since_last_updateJointState.torqueJointState.velocity
JointVelocityCommandBuilderJointVelocityCommandFeedbackLogMobilityCommandBuilderMobilityCommandFeedbackModel_AModel_MModel_UBOptimalControlCommandBuilderOptimalControlCommandBuilder.add_cartesian_target()OptimalControlCommandBuilder.add_joint_position_target()OptimalControlCommandBuilder.set_acceleration_limit_scaling()OptimalControlCommandBuilder.set_center_of_mass_target()OptimalControlCommandBuilder.set_command_header()OptimalControlCommandBuilder.set_error_scaling()OptimalControlCommandBuilder.set_min_delta_cost()OptimalControlCommandBuilder.set_patience()OptimalControlCommandBuilder.set_stop_cost()OptimalControlCommandBuilder.set_velocity_limit_scaling()
OptimalControlCommandFeedbackPIDGainPowerInfoPowerStateRobotCommandBuilderRobotCommandFeedbackRobotCommandFeedback.FinishCodeRobotCommandFeedback.FinishCode.CanceledRobotCommandFeedback.FinishCode.ControlManagerFaultRobotCommandFeedback.FinishCode.ControlManagerIdleRobotCommandFeedback.FinishCode.InitializationFailedRobotCommandFeedback.FinishCode.OkRobotCommandFeedback.FinishCode.PreemptedRobotCommandFeedback.FinishCode.UnexpectedStateRobotCommandFeedback.FinishCode.UnknownRobotCommandFeedback.FinishCode.value
RobotCommandFeedback.StatusRobotCommandFeedback.component_based_commandRobotCommandFeedback.finish_codeRobotCommandFeedback.jog_commandRobotCommandFeedback.statusRobotCommandFeedback.whole_body_command
RobotInfoRobotInfo.battery_infoRobotInfo.body_joint_idxRobotInfo.degree_of_freedomRobotInfo.emo_infosRobotInfo.head_joint_idxRobotInfo.joint_infosRobotInfo.left_arm_joint_idxRobotInfo.mobility_joint_idxRobotInfo.power_infosRobotInfo.right_arm_joint_idxRobotInfo.robot_model_nameRobotInfo.robot_model_versionRobotInfo.robot_versionRobotInfo.sdk_commit_idRobotInfo.sdk_versionRobotInfo.torso_joint_idxRobotInfo.version
RobotState_ARobotState_A.battery_stateRobotState_A.center_of_massRobotState_A.collisionsRobotState_A.currentRobotState_A.emo_statesRobotState_A.ft_sensor_leftRobotState_A.ft_sensor_rightRobotState_A.gravityRobotState_A.is_readyRobotState_A.joint_statesRobotState_A.odometryRobotState_A.positionRobotState_A.power_statesRobotState_A.system_statRobotState_A.target_feedback_gainRobotState_A.target_feedforward_torqueRobotState_A.target_positionRobotState_A.target_velocityRobotState_A.temperatureRobotState_A.timestampRobotState_A.tool_flange_leftRobotState_A.tool_flange_rightRobotState_A.torqueRobotState_A.velocity
RobotState_MRobotState_M.battery_stateRobotState_M.center_of_massRobotState_M.collisionsRobotState_M.currentRobotState_M.emo_statesRobotState_M.ft_sensor_leftRobotState_M.ft_sensor_rightRobotState_M.gravityRobotState_M.is_readyRobotState_M.joint_statesRobotState_M.odometryRobotState_M.positionRobotState_M.power_statesRobotState_M.system_statRobotState_M.target_feedback_gainRobotState_M.target_feedforward_torqueRobotState_M.target_positionRobotState_M.target_velocityRobotState_M.temperatureRobotState_M.timestampRobotState_M.tool_flange_leftRobotState_M.tool_flange_rightRobotState_M.torqueRobotState_M.velocity
RobotState_UBRobotState_UB.battery_stateRobotState_UB.center_of_massRobotState_UB.collisionsRobotState_UB.currentRobotState_UB.emo_statesRobotState_UB.ft_sensor_leftRobotState_UB.ft_sensor_rightRobotState_UB.gravityRobotState_UB.is_readyRobotState_UB.joint_statesRobotState_UB.odometryRobotState_UB.positionRobotState_UB.power_statesRobotState_UB.system_statRobotState_UB.target_feedback_gainRobotState_UB.target_feedforward_torqueRobotState_UB.target_positionRobotState_UB.target_velocityRobotState_UB.temperatureRobotState_UB.timestampRobotState_UB.tool_flange_leftRobotState_UB.tool_flange_rightRobotState_UB.torqueRobotState_UB.velocity
Robot_ARobot_A.brake_engage()Robot_A.brake_release()Robot_A.cancel_control()Robot_A.connect()Robot_A.connect_wifi()Robot_A.control()Robot_A.create()Robot_A.create_command_stream()Robot_A.disable_control_manager()Robot_A.disconnect()Robot_A.disconnect_wifi()Robot_A.download_file()Robot_A.enable_control_manager()Robot_A.factory_reset_all_parameters()Robot_A.factory_reset_parameter()Robot_A.get_control_manager_state()Robot_A.get_dynamics()Robot_A.get_fault_log_list()Robot_A.get_head_position_pid_gains()Robot_A.get_last_log()Robot_A.get_left_arm_position_pid_gains()Robot_A.get_parameter()Robot_A.get_parameter_list()Robot_A.get_position_pid_gain()Robot_A.get_right_arm_position_pid_gains()Robot_A.get_robot_info()Robot_A.get_robot_model()Robot_A.get_serial_device_list()Robot_A.get_state()Robot_A.get_system_time()Robot_A.get_time_scale()Robot_A.get_torso_position_pid_gains()Robot_A.get_wifi_status()Robot_A.has_established_time_sync()Robot_A.home_offset_reset()Robot_A.import_robot_model()Robot_A.is_connected()Robot_A.is_power_on()Robot_A.is_servo_on()Robot_A.model()Robot_A.open_serial_stream()Robot_A.power_off()Robot_A.power_on()Robot_A.reset_all_parameters()Robot_A.reset_all_parameters_to_default()Robot_A.reset_battery_config()Robot_A.reset_fault_control_manager()Robot_A.reset_network_setting()Robot_A.reset_odometry()Robot_A.reset_parameter()Robot_A.reset_parameter_to_default()Robot_A.scan_wifi()Robot_A.send_command()Robot_A.servo_off()Robot_A.servo_on()Robot_A.set_battery_config()Robot_A.set_battery_level()Robot_A.set_led_color()Robot_A.set_parameter()Robot_A.set_position_d_gain()Robot_A.set_position_i_gain()Robot_A.set_position_p_gain()Robot_A.set_position_pid_gain()Robot_A.set_preset_position()Robot_A.set_system_time()Robot_A.set_time_scale()Robot_A.set_tool_flange_digital_output()Robot_A.set_tool_flange_digital_output_dual()Robot_A.set_tool_flange_output_voltage()Robot_A.start_log_stream()Robot_A.start_state_update()Robot_A.start_time_sync()Robot_A.stop_log_stream()Robot_A.stop_state_update()Robot_A.stop_time_sync()Robot_A.sync_time()Robot_A.wait_for_control_ready()
Robot_A_CommandHandlerRobot_A_CommandStreamHandlerRobot_A_ControlInputRobot_A_ControlStateRobot_MRobot_M.brake_engage()Robot_M.brake_release()Robot_M.cancel_control()Robot_M.connect()Robot_M.connect_wifi()Robot_M.control()Robot_M.create()Robot_M.create_command_stream()Robot_M.disable_control_manager()Robot_M.disconnect()Robot_M.disconnect_wifi()Robot_M.download_file()Robot_M.enable_control_manager()Robot_M.factory_reset_all_parameters()Robot_M.factory_reset_parameter()Robot_M.get_control_manager_state()Robot_M.get_dynamics()Robot_M.get_fault_log_list()Robot_M.get_head_position_pid_gains()Robot_M.get_last_log()Robot_M.get_left_arm_position_pid_gains()Robot_M.get_parameter()Robot_M.get_parameter_list()Robot_M.get_position_pid_gain()Robot_M.get_right_arm_position_pid_gains()Robot_M.get_robot_info()Robot_M.get_robot_model()Robot_M.get_serial_device_list()Robot_M.get_state()Robot_M.get_system_time()Robot_M.get_time_scale()Robot_M.get_torso_position_pid_gains()Robot_M.get_wifi_status()Robot_M.has_established_time_sync()Robot_M.home_offset_reset()Robot_M.import_robot_model()Robot_M.is_connected()Robot_M.is_power_on()Robot_M.is_servo_on()Robot_M.model()Robot_M.open_serial_stream()Robot_M.power_off()Robot_M.power_on()Robot_M.reset_all_parameters()Robot_M.reset_all_parameters_to_default()Robot_M.reset_battery_config()Robot_M.reset_fault_control_manager()Robot_M.reset_network_setting()Robot_M.reset_odometry()Robot_M.reset_parameter()Robot_M.reset_parameter_to_default()Robot_M.scan_wifi()Robot_M.send_command()Robot_M.servo_off()Robot_M.servo_on()Robot_M.set_battery_config()Robot_M.set_battery_level()Robot_M.set_led_color()Robot_M.set_parameter()Robot_M.set_position_d_gain()Robot_M.set_position_i_gain()Robot_M.set_position_p_gain()Robot_M.set_position_pid_gain()Robot_M.set_preset_position()Robot_M.set_system_time()Robot_M.set_time_scale()Robot_M.set_tool_flange_digital_output()Robot_M.set_tool_flange_digital_output_dual()Robot_M.set_tool_flange_output_voltage()Robot_M.start_log_stream()Robot_M.start_state_update()Robot_M.start_time_sync()Robot_M.stop_log_stream()Robot_M.stop_state_update()Robot_M.stop_time_sync()Robot_M.sync_time()Robot_M.wait_for_control_ready()
Robot_M_CommandHandlerRobot_M_CommandStreamHandlerRobot_M_ControlInputRobot_M_ControlStateRobot_UBRobot_UB.brake_engage()Robot_UB.brake_release()Robot_UB.cancel_control()Robot_UB.connect()Robot_UB.connect_wifi()Robot_UB.control()Robot_UB.create()Robot_UB.create_command_stream()Robot_UB.disable_control_manager()Robot_UB.disconnect()Robot_UB.disconnect_wifi()Robot_UB.download_file()Robot_UB.enable_control_manager()Robot_UB.factory_reset_all_parameters()Robot_UB.factory_reset_parameter()Robot_UB.get_control_manager_state()Robot_UB.get_dynamics()Robot_UB.get_fault_log_list()Robot_UB.get_head_position_pid_gains()Robot_UB.get_last_log()Robot_UB.get_left_arm_position_pid_gains()Robot_UB.get_parameter()Robot_UB.get_parameter_list()Robot_UB.get_position_pid_gain()Robot_UB.get_right_arm_position_pid_gains()Robot_UB.get_robot_info()Robot_UB.get_robot_model()Robot_UB.get_serial_device_list()Robot_UB.get_state()Robot_UB.get_system_time()Robot_UB.get_time_scale()Robot_UB.get_torso_position_pid_gains()Robot_UB.get_wifi_status()Robot_UB.has_established_time_sync()Robot_UB.home_offset_reset()Robot_UB.import_robot_model()Robot_UB.is_connected()Robot_UB.is_power_on()Robot_UB.is_servo_on()Robot_UB.model()Robot_UB.open_serial_stream()Robot_UB.power_off()Robot_UB.power_on()Robot_UB.reset_all_parameters()Robot_UB.reset_all_parameters_to_default()Robot_UB.reset_battery_config()Robot_UB.reset_fault_control_manager()Robot_UB.reset_network_setting()Robot_UB.reset_odometry()Robot_UB.reset_parameter()Robot_UB.reset_parameter_to_default()Robot_UB.scan_wifi()Robot_UB.send_command()Robot_UB.servo_off()Robot_UB.servo_on()Robot_UB.set_battery_config()Robot_UB.set_battery_level()Robot_UB.set_led_color()Robot_UB.set_parameter()Robot_UB.set_position_d_gain()Robot_UB.set_position_i_gain()Robot_UB.set_position_p_gain()Robot_UB.set_position_pid_gain()Robot_UB.set_preset_position()Robot_UB.set_system_time()Robot_UB.set_time_scale()Robot_UB.set_tool_flange_digital_output()Robot_UB.set_tool_flange_digital_output_dual()Robot_UB.set_tool_flange_output_voltage()Robot_UB.start_log_stream()Robot_UB.start_state_update()Robot_UB.start_time_sync()Robot_UB.stop_log_stream()Robot_UB.stop_state_update()Robot_UB.stop_time_sync()Robot_UB.sync_time()Robot_UB.wait_for_control_ready()
Robot_UB_CommandHandlerRobot_UB_CommandStreamHandlerRobot_UB_ControlInputRobot_UB_ControlStateSE2VelocityCommandBuilderSE2VelocityCommandFeedbackSerialDeviceSerialStreamStopCommandBuilderStopCommandFeedbackSystemStatToolFlangeStateTorsoCommandBuilderTorsoCommandFeedbackTorsoCommandFeedback.cartesian_commandTorsoCommandFeedback.cartesian_impedance_control_commandTorsoCommandFeedback.gravity_compensation_commandTorsoCommandFeedback.impedance_control_commandTorsoCommandFeedback.joint_group_position_commandTorsoCommandFeedback.joint_impedance_control_commandTorsoCommandFeedback.joint_position_commandTorsoCommandFeedback.optimal_control_command
WholeBodyCommandBuilderWholeBodyCommandFeedbackWifiNetworkWifiStatuscreate_robot_a()create_robot_m()create_robot_ub()printoptionsset_printoptions()
- Exceptions
- rb_sdk.amr_sdk package
- Subpackages
- Submodules
- rb_sdk.amr_sdk.amr_accessory module
- rb_sdk.amr_sdk.amr_capability module
RBAmrCapabilitySDKRBAmrCapabilitySDK.get_capability_camera()RBAmrCapabilitySDK.get_capability_dock()RBAmrCapabilitySDK.get_capability_imu()RBAmrCapabilitySDK.get_capability_lidar2d()RBAmrCapabilitySDK.get_capability_lidar3d()RBAmrCapabilitySDK.get_capability_safety_bumper()RBAmrCapabilitySDK.get_capability_safety_interlock()RBAmrCapabilitySDK.get_capability_safety_io()RBAmrCapabilitySDK.get_capability_safety_obstacle()RBAmrCapabilitySDK.get_capability_safety_operation_stop()RBAmrCapabilitySDK.get_capability_safety_speed_control()RBAmrCapabilitySDK.get_capability_tabos()
- rb_sdk.amr_sdk.amr_control module
RBAmrControlSDKRBAmrControlSDK.control_charge_trigger()RBAmrControlSDK.control_dock()RBAmrControlSDK.control_dock_stop()RBAmrControlSDK.control_get_obs_box()RBAmrControlSDK.control_get_result_dock()RBAmrControlSDK.control_get_safety_field()RBAmrControlSDK.control_get_safety_flag()RBAmrControlSDK.control_get_safety_io()RBAmrControlSDK.control_set_avoid()RBAmrControlSDK.control_set_crossing()RBAmrControlSDK.control_set_jog()RBAmrControlSDK.control_set_led()RBAmrControlSDK.control_set_motor()RBAmrControlSDK.control_set_obs_box()RBAmrControlSDK.control_set_safety_field()RBAmrControlSDK.control_set_safety_flag()RBAmrControlSDK.control_set_safety_io()RBAmrControlSDK.control_stream_frequency()RBAmrControlSDK.control_undock()
SafetyFlag
- rb_sdk.amr_sdk.amr_file module
- rb_sdk.amr_sdk.amr_localization module
RBAmrLocalizationSDKRBAmrLocalizationSDK.get_localization_result()RBAmrLocalizationSDK.localization_auto_init()RBAmrLocalizationSDK.localization_init()RBAmrLocalizationSDK.localization_random_init()RBAmrLocalizationSDK.localization_semi_auto_init()RBAmrLocalizationSDK.localization_start()RBAmrLocalizationSDK.localization_stop()
- rb_sdk.amr_sdk.amr_map module
RBAmrMapSDKRBAmrMapSDK.delete_map()RBAmrMapSDK.get_current_map()RBAmrMapSDK.get_map_cloud()RBAmrMapSDK.get_map_cloud_stream()RBAmrMapSDK.get_map_list()RBAmrMapSDK.get_map_topology()RBAmrMapSDK.map_load()RBAmrMapSDK.mapping_reload()RBAmrMapSDK.mapping_save()RBAmrMapSDK.mapping_start()RBAmrMapSDK.mapping_stop()RBAmrMapSDK.set_map_cloud()RBAmrMapSDK.set_map_topology()RBAmrMapSDK.topo_reload()
- rb_sdk.amr_sdk.amr_move module
RBAmrMoveSDKRBAmrMoveSDK.get_move_result()RBAmrMoveSDK.send_move_circular()RBAmrMoveSDK.send_move_goal()RBAmrMoveSDK.send_move_jog()RBAmrMoveSDK.send_move_pause()RBAmrMoveSDK.send_move_resume()RBAmrMoveSDK.send_move_rotate()RBAmrMoveSDK.send_move_stop()RBAmrMoveSDK.send_move_target()RBAmrMoveSDK.send_move_x_linear()RBAmrMoveSDK.send_move_y_linear()RBAmrMoveSDK.send_multi_enqueue()RBAmrMoveSDK.send_multi_path()RBAmrMoveSDK.send_multi_vobs()
- rb_sdk.amr_sdk.amr_program module
- rb_sdk.amr_sdk.amr_sensor module
- rb_sdk.amr_sdk.amr_setting module
RBAmrSettingSDKRBAmrSettingSDK.get_drive_param()RBAmrSettingSDK.get_pdu_param()RBAmrSettingSDK.get_robot_type()RBAmrSettingSDK.get_sensor_info()RBAmrSettingSDK.get_sensor_mode()RBAmrSettingSDK.get_setting_category()RBAmrSettingSDK.get_setting_param()RBAmrSettingSDK.get_setting_preset()RBAmrSettingSDK.get_setting_preset_list()RBAmrSettingSDK.parse_setting_param_collection()RBAmrSettingSDK.parse_setting_param_type()RBAmrSettingSDK.set_drive_param()RBAmrSettingSDK.set_pdu_param()RBAmrSettingSDK.set_robot_type()RBAmrSettingSDK.set_sensor_info()RBAmrSettingSDK.set_sensor_mode()RBAmrSettingSDK.set_setting_param()RBAmrSettingSDK.set_setting_preset()
- rb_sdk.amr_sdk.amr_status module
- Module contents
- rb_sdk.base_sdk package
- rb_sdk.schema package
Submodules#
rb_sdk.amr module#
- class rb_sdk.amr.RBAmrSDK(*args, **kwargs)[source]#
Bases:
RBBaseSDK- capability: RBAmrCapabilitySDK#
- control: RBAmrControlSDK#
- file: RBAmrFileSDK#
- localization: RBAmrLocalizationSDK#
- map: RBAmrMapSDK#
- move: RBAmrMoveSDK#
- program: RBAmrProgramSDK#
- sensor: RBAmrSensorSDK#
- setting: RBAmrSettingSDK#
- status: RBAmrStatusSDK#
rb_sdk.base module#
- class rb_sdk.base.RBBaseSDK(*args, **kwargs)[source]#
Bases:
object프로세스별 싱글톤 + 공통 Zenoh/루프 관리 + 참조 카운팅
- Parameters:
args (Any)
kwargs (Any)
- Return type:
T
- classmethod close_all_for_pid(pid=None)[source]#
주어진 pid(기본: 현재 프로세스)에 등록된 모든 RBBaseSDK 서브클래스 인스턴스를 한 번에 close 한다. ref-count가 항상 0까지 떨어지므로 ZenohClient도 정리된다.
부모 SDK가 자식 SDK 여러 개를 자동 instantiate 하는 구조에서, 부모 close만 호출하면 자식들이 leak되어 ref-count가 0에 도달하지 못하는 문제를 회피한다.
- Returns:
close 시도된 인스턴스 수
- Parameters:
pid (int | None)
- Return type:
int
- async connect(*, token, host, zenoh_port=None, ttl=30, heartbeat=None)[source]#
common 서비스에 외부 Zenoh peer로 등록하고 백그라운드 유지 스레드를 시작한다.
등록 성공/실패와 무관하게 즉시 반환한다. 실패하면 유지 스레드가 계속 재시도하고, 중간에 common 이 재시작해 peer 가 사라져도 자동으로 재등록한다. 붙기 전 SDK 호출은 no-reply 로 실패한다.
common과 같은 PC에서 실행 중이라면 이미 Zenoh 메시가 형성되어 있으므로 아무것도 하지 않고
None을 반환한다.내부적으로 SDK 호출이 사용하는 공유 Zenoh 세션을 외부 listen 포트로 재연결한다.
zenoh_port를 생략하면 OS가 빈 포트를 자동으로 배정하므로 충돌이 없다.- Parameters:
token (str) – common 서비스 Bearer 토큰.
host (str) – common 서비스가 실행 중인 PC의 IP (예:
"192.168.1.100").zenoh_port (int | None) – 이 머신의 Zenoh listen 포트.
None이면 OS가 자동 배정.ttl (int) – common 측 브리지 세션 TTL(초). heartbeat를 보내지 않으면 이 시간 후 자동 해제.
heartbeat (float | None) – heartbeat 전송 주기(초). None 이면
ttl / 2사용.
- Returns:
common이 발급한 peer_id. 같은 PC라 불필요하거나 아직 등록 전이면
None.- Return type:
str | None
- connect_can(*, channel, bitrate, fd=False, dataBitrate=0, receiveOwnMessages=0, interface='pcan', flow_manager_args=None)[source]#
[CAN Connect 요청] - channel : 연결할 CAN 채널/디바이스 식별자 (ex : PCAN_USBBUS1, /dev/pcanusb32) - bitrate : CAN Nominal Bitrate (ex : 5000000, 1000000) - fd : CAN FD(Flexible Data-rate) 사용 여부 - dataBitrate : CAN Data Phase Bitrate (fd True일때 사용) - receiveOwnMessage : 자기가 송신한 TX 프레임을 RX로 수신할 지 여부 (기본 : 수신안함 0) - interface: 사용할 CAN 인터페이스/드라이버 종류 (ex : pcan, socketcan)
- Parameters:
channel (str)
bitrate (int)
fd (bool)
dataBitrate (int)
receiveOwnMessages (int)
interface (str)
flow_manager_args (FlowManagerArgs | None)
- Return type:
- async disconnect()[source]#
common 서비스에 등록된 외부 Zenoh peer 연결을 해제하고 heartbeat를 중단한다.
- Return type:
bool
- disconnect_can(*, channel, flow_manager_args=None)[source]#
[CAN Disconnect 요청] - channel : 연결할 CAN 채널/디바이스 식별자 (ex : PCAN_USBBUS1, /dev/pcanusb32)
- Parameters:
channel (str)
flow_manager_args (FlowManagerArgs | None)
- Return type:
- log(*, content, robot_model, level, disable_db=False, flow_manager_args=None)[source]#
프로그램 로그 발생
- Parameters:
content (str)
robot_model (str)
level (Literal['INFO', 'WARNING', 'ERROR', 'USER', 'DEBUG', 'GENERAL'])
disable_db (bool)
flow_manager_args (FlowManagerArgs | None)
- manipulate_return_value(func_name, obj_payload, flow_manager_args=None)[source]#
PyFM이 실행할 경우 obj_payload에 returnValue 필드가 있고, 0이 아니면 에러로 간주해서 로그 남기고 예외를 던진다.
- Parameters:
func_name (str) – 함수 이름 (로그용)
obj_payload (object) – 반환된 객체 (returnValue 필드가 있는지 확인)
flow_manager_args (FlowManagerArgs | None) – Flow Manager 인자 (done 콜백 호출 여부 결정)
- register_zenoh_queryable(keyexpr, queryable)[source]#
Queryable 등록 (keyexpr와 함께 저장)
- Parameters:
keyexpr (str)
- transmit_can(*, channel, arbitrationId, data=None, dlc=0, isExtendedId=False, isRemoteFrame=False, isFd=False, bitrateSwitch=False, isErrorFrame=False, errorStateIndicator=False, timestamp=0, flow_manager_args=None)[source]#
[CAN Transmit 요청] - channel : 연결할 CAN 채널/디바이스 식별자 (ex : PCAN_USBBUS1, /dev/pcanusb32) - arbitrationId : 메시지 CAN ID - data : 송신할 데이터 바이트 배열 - dlc : data length code. 프레임 데이터 길이 정보 - isExtendedId : 확장ID 사용 여부 (기본 False) - isRemoteFrame : RTR 여부 (기본 False) - isFd : CAN FD 프레임 여부 (기본 False) - bitrateSwitch : CAN FD BRS 여부 (기본 False) - isErrorFrame : Error Frame 여부 (기본 False) - errorStateIndicator : CAN FD의 ESI(Error State Indicator) 비트 (기본 False) - timestamp : 송신 시각 혹은 프레임 생성 시각
- Parameters:
channel (str)
arbitrationId (int)
data (list[int] | None)
dlc (int)
isExtendedId (bool)
isRemoteFrame (bool)
isFd (bool)
bitrateSwitch (bool)
isErrorFrame (bool)
errorStateIndicator (bool)
timestamp (float)
flow_manager_args (FlowManagerArgs | None)
- Return type:
- zenoh_queryable(keyexpr, *, flatbuffer_req_T_class=None, flatbuffer_res_buf_size=None)[source]#
데코레이터: Queryable 자동 등록 및 정리
- Parameters:
keyexpr (str)
flatbuffer_req_T_class (FBRootReadable | None)
flatbuffer_res_buf_size (int | None)
- zenoh_subscribe(topic: str, *, flatbuffer_obj_t: FBRootReadable[TSubObj], opts: SubscribeOptions | None = None) Callable[[SubscribeObjCallback[TSubObj]], SubscribeObjCallback[TSubObj]][source]#
- zenoh_subscribe(topic: str, *, flatbuffer_obj_t: None = None, opts: SubscribeOptions | None = None) Callable[[SubscribeDictCallback], SubscribeDictCallback]
데코레이터: Subscribe 자동 등록 및 정리
- Parameters:
topic (str)
flatbuffer_obj_t (FBRootReadable[Any] | None)
opts (SubscribeOptions | None)
- class rb_sdk.base.ZenohSubscriptionDone[source]#
Bases:
objectzenoh 구독 콜백에서 “이제 끝났다”를 안전하게 신호하기 위한 asyncio.Event 드롭인.
asyncio.Event`와 똑같이 `.set() / await .wait() / .is_set() 으로 쓰면 된다. 차이는 단 하나, **어느 이벤트 루프에서 `.set()`을 호출해도 안전**하다는 것.
왜 필요한가: zenoh 구독 콜백은 zenoh 전용 핸들러 이벤트 루프(별도 스레드) 에서 실행되는데, `await .wait()`는 보통 다른 루프(SDK 함수가 도는 루프)에서 일어난다. 순수 `asyncio.Event`는 thread-safe하지 않아 콜백 루프에서 `set()`해도 대기 중인 루프를 깨우지 못해 `await .wait()`가 영원히 안 풀린다(=stop 시 데드락). 이 클래스는 `set()`을 대기 루프로 `call_soon_threadsafe`로 넘겨 그 함정을 자동으로 없앤다.
사용법:
done = self._zenoh_subs_done_event() # await 할 루프에서 생성 def _on_status(*, obj_payload=None, unsubscribe=None, **_): ... # 도메인 판정 if 끝남: unsubscribe() done.set() # 그냥 set 하면 됨 (cross-loop 걱정 X) sub = self.zenoh_client.subscribe(topic, _on_status, ...) try: await done.wait() finally: sub.close()
Module contents#
Rainbow Robotics SDK package.
이 패키지는 문서 빌드 중에 종속성을 방지하기 위해 lazy import를 사용하여 선택된 SDK 진입점을 제공합니다.
- class rb_sdk.PluginProgramContext#
Bases:
pybind11_object- begin_execution(self: rb_sdk.rb_sdk_cpp.PluginProgramContext, robot_model: str | None = None) None#
- async check_stop(robot_model=None)#
- property control_topic#
- async done()#
- end_execution(self: rb_sdk.rb_sdk_cpp.PluginProgramContext) None#
- property exec_robot_model#
- executor_state(self: rb_sdk.rb_sdk_cpp.PluginProgramContext, robot_model: str | None = None) object#
- async get_variable(name, robot_model=None, plugin_id=None)#
- property in_execute#
- is_paused(self: rb_sdk.rb_sdk_cpp.PluginProgramContext, robot_model: str | None = None) bool#
- is_stopped(self: rb_sdk.rb_sdk_cpp.PluginProgramContext, robot_model: str | None = None) bool#
- on_execute(self: object, func: object) object#
- on_executor_state_change(self: object, func: object) object#
- async pause()#
- property plugin_id#
- set_execute_handler(self: rb_sdk.rb_sdk_cpp.PluginProgramContext, handler: Callable) None#
- set_state_change_handler(self: rb_sdk.rb_sdk_cpp.PluginProgramContext, handler: Callable) None#
- async set_variable(name, value)#
- async start()#
- property started#
- async stop()#
- class rb_sdk.RBAmrSDK#
Bases:
pybind11_object- property accessory#
- property capability#
- connect(self: rb_sdk.rb_sdk_cpp.RBAmrSDK, options: rb_sdk.rb_sdk_cpp.ConnectOptions) str | None#
- property control#
- property file#
- property localization#
- property map#
- property move#
- property program#
- property sensor#
- property setting#
- property status#
- class rb_sdk.RBBaseSDK(*args, **kwargs)#
Bases:
pybind11_objectCommon SDK base for zenoh transport, lifecycle, logging, and shared helpers.
Every domain SDK (RBManipulateSDK, RBAmrSDK, RBProgramSDK, RBRby1SDK, …) derives from this class. It provides:
One zenoh session per process. All SDK instances in the same process share a single rb_zenoh::ZenohClient. The session is opened lazily by the first constructor and is closed only when the last SDK instance is closed (reference counted per process id).
Raw and FlatBuffer-typed request/reply (query, query_one, query_all), publish/subscribe (publish, zenoh_subscribe, receive_one), and serving requests (zenoh_queryable).
Automatic recovery: query-style calls that fail with a transport error or no reply reconnect the shared session and retry exactly once.
Remote peer mode (connect/disconnect): lets a process running off- robot join the robot’s zenoh mesh through the common service.
Cross-domain helpers: program logs (log), PyFM step result checks (manipulate_return_value, validate_single_return_value), CAN bus access through the host_pcan service (connect_can, disconnect_can, transmit_can), and vendor vision client registries.
- Threading: blocking network calls release the Python GIL when it is
held,
so other Python threads and zenoh callbacks keep running while a call waits for a reply. Calls are safe to make from multiple threads.
Fork safety: the zenoh runtime does not survive fork(). An instance that was created in a parent process is ignored by close() in a forked child; the child must create its own SDK instances.
Python binding: the Python class keeps one instance per (process id, class), so constructing the same SDK class twice in one process returns the same object. connect() and disconnect() return awaitables in Python, and zenoh_subscribe()/zenoh_queryable() are used as decorators.
- close(*args, **kwargs)#
Releases this instance’s resources and closes the shared session when it is the last SDK.
In order: runs before_close(), decrements the per-process SDK reference count, then either calls disconnect() when a remote peer is registered (which always closes the shared session), or undeclares only this instance’s subscribers and queryables and closes the shared session if no other SDK instance is left.
Idempotent: later calls do nothing. Does nothing in a forked child for an instance created by the parent process. Called automatically by the destructor.
Python: also removes this object from the per-process instance cache, so the next construction of the same class creates a new object.
- static close_all_for_pid()#
Closes every live SDK instance in the current process.
Calls close() on every RBBaseSDK (including derived SDKs and sub-SDKs held as members of an aggregate SDK) that was constructed in this process and is not closed yet. The reference count therefore reaches zero and the shared zenoh session is closed. Use it at shutdown when relying on destructor or garbage-collection order is not acceptable. Errors from individual close() calls are logged and skipped.
In Python this also clears the per-process instance cache, so the next construction creates a fresh object.
- Returns:
Number of instances that were closed. 0 when called from a forked child.
- Return type:
int
- connect(options)#
Registers this process as a remote zenoh peer through the common service.
Use this when the SDK runs on a machine other than the robot. The steps are:
If
options.hostresolves to this machine, return std::nullopt immediately: the process is already part of the local mesh.If a peer is already registered in this process, return its id.
Pick the listen port (options.zenoh_port or a free port), add “tcp/0.0.0.0:<port>” to ZENOH_PEER_LISTEN_ENDPOINTS, and reopen the shared zenoh session so it listens on that port.
POST this machine’s IP (the local address used to reach the host), port, and ttl to http://<host>:8000/zenoh/peer.
Start a background keepalive thread that sends a heartbeat every options.heartbeat seconds (ttl / 2 by default) and re-registers the peer if the common service forgets it (for example after a restart).
Publish echo probes on “muscat/zenoh/echo_req” until a matching reply arrives on “muscat/zenoh/echo_res” or options.mesh_timeout expires.
If the first registration request fails (for example the robot is still booting), the error is logged, the keepalive thread keeps retrying with exponential backoff (2 s up to 30 s), and std::nullopt is returned. If registration succeeds but the echo check times out, the peer is unregistered and std::nullopt is returned.
In Python this method returns an awaitable that runs the blocking work in a worker thread: use “await sdk.connect(options)”.
- Parameters:
options – Remote peer registration and heartbeat options.
- Returns:
Registered peer id, or std::nullopt when registration is skipped, still pending in the background, or the mesh echo check fails.
- Raises:
std::runtime_error – If local IP/port detection or zenoh reconnection fails, or if unregistering the peer after a failed echo check fails.
Python: returns an awaitable that runs the blocking work in a worker thread (asyncio.to_thread). Use
peer_id = await sdk.connect(options); the awaited value is the peer id string or None.
- connect_can(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, *, channel: str, bitrate: int, fd: bool = False, dataBitrate: int = 0, receiveOwnMessages: bool = False, interface: str = 'pcan', flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) rb_schemas.fbs_types.ipc.ResponseCANConnectTD#
Opens a CAN channel through the host_pcan service.
Sends a request on “muscat/can/connect” (1 s timeout) to the host service, which opens the bus on the robot PC. Each channel is opened once and stays open until disconnect_can() is called; frames are then sent with transmit_can().
In Python the keyword arguments use the FlatBuffer field names: channel, bitrate, fd, dataBitrate, receiveOwnMessages, interface, flow_manager_args (all keyword-only).
- Parameters:
channel – CAN channel name as understood by the interface backend, for example “PCAN_USBBUS1”.
bitrate – Nominal (arbitration phase) bitrate in bit/s, for example 500000.
fd – Whether to open the channel in CAN-FD mode.
data_bitrate – CAN-FD data phase bitrate in bit/s. Used only when
fdis true; 0 leaves it to the backend default.receive_own_messages – Whether transmitted frames should be looped back to this channel’s receivers.
iface – CAN interface backend, defaults to “pcan” (PEAK-System adapters).
flow_manager_args – Optional PyFM step context. If provided, the step is marked done on success and an unsuccessful response raises.
- Returns:
IPC::ResponseCANConnectT returned by the host service. Check success and message when
flow_manager_argsis not given, because a failure is then returned instead of raised.- Raises:
std::runtime_error – If no response is received, or if
flow_manager_argsis provided and the response reports failure (the exception message is the service’s message).rb_zenoh::ZenohNoReply – , rb_zenoh::ZenohTransportError If the host service cannot be reached.
- disconnect()#
Unregisters this process from the remote peer mesh and closes its shared zenoh session.
Reverses connect(): stops and joins the keepalive thread, sends DELETE /zenoh/peer/<peer_id> to the common service (a failure is logged, not thrown), undeclares this instance’s subscribers and queryables, and closes the shared zenoh session unconditionally. Other SDK instances in the process lose their session too; their next query-style call reopens it, but their subscribers and queryables are not restored.
In Python this method returns an awaitable: use “await sdk.disconnect()”.
- Returns:
true when a peer registration or keepalive thread was active and has been torn down; false when there was nothing to disconnect.
Python: returns an awaitable (asyncio.to_thread). Use
await sdk.disconnect(); the awaited value is the bool result.
- disconnect_can(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, *, channel: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) rb_schemas.fbs_types.ipc.ResponseCANDisconnectTD#
Closes a CAN channel through the host_pcan service.
Sends a request on “muscat/can/disconnect” (1 s timeout). Same success and error handling as connect_can().
- Parameters:
channel – CAN channel name previously passed to connect_can().
flow_manager_args – Optional PyFM step context. If provided, the step is marked done on success and an unsuccessful response raises.
- Returns:
IPC::ResponseCANDisconnectT returned by the host service.
- Raises:
std::runtime_error – If no response is received, or if
flow_manager_argsis provided and the response reports failure.rb_zenoh::ZenohNoReply – , rb_zenoh::ZenohTransportError If the host service cannot be reached.
- static instance() rb_sdk.rb_sdk_cpp.RBBaseSDK#
Returns a process-local singleton base SDK instance.
The instance is created on first use and lives until process exit. Use it when only the shared transport and helpers are needed and no domain SDK is involved.
- Returns:
Reference to the singleton. Do not delete it.
- log(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, *, content: str, robot_model: str, level: str, disable_db: bool = False, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Emits a program log entry on the shared muscat log topic.
Publishes a muscat::RB_Program_LogT on “muscat/program/log”, where the common service’s program feature picks it up as a program log. The call is fire-and-forget (see publish()); it does not wait for the log to be stored.
- Parameters:
content – Log message content.
robot_model – Name of the robot model associated with the log.
level – Log level: “INFO”, “WARNING”, “ERROR”, “USER”, “DEBUG”, or “GENERAL”. Matching is case-sensitive. Any other string leaves the log type at its FlatBuffer default.
disable_db – Kept for parity with the Python SDK; currently ignored.
flow_manager_args – Optional PyFM step context. If provided, the step is marked done after publishing the log.
- publish(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, topic: str, payload: list[int], extra_attachment: str = '', congestion_control: int = 1, priority: int = 5, express: bool = False) None#
Publishes raw bytes to a zenoh topic.
Non-blocking: the sample is put on the session’s transmit queue and sent by a background worker, so this returns before the data is on the wire. The queue holds up to 4096 samples; when it is full, the oldest pending sample is dropped. While the session is closing, samples are silently discarded. There is no delivery confirmation; use query_one() when an acknowledgement is needed.
- Parameters:
topic – Zenoh key expression to publish to. Must not contain wildcards.
payload – Raw payload bytes.
extra_attachment – Optional attachment string appended to the sender metadata that subscribers receive.
congestion_control – zenoh-c congestion control: 1 = DROP (default, drop the sample when the network is congested) or 0 = BLOCK (wait until it can be sent). See CongestionControl.
priority – zenoh-c priority 1 (REAL_TIME) to 7 (BACKGROUND). Default 5 (DATA). See Priority.
express – If true, zenoh sends the sample immediately instead of batching it with others. Lowers latency at the cost of throughput.
- Raises:
std::runtime_error – If
topicis not a valid key expression.
- query(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, topic: str, payload: list[int] | None = None, timeout_ms: int = 1000, target: int = 0) list[rb_sdk.rb_sdk_cpp.RawReply]#
Sends a raw zenoh query and returns every raw reply.
Blocks until every matching queryable has answered or
timeout_mselapses, then returns all replies received, including error replies (RawReply::is_error is true for those). Unlike query_one(), getting no reply is not an error: the result is simply empty.- Parameters:
topic – Zenoh key expression to query. Wildcards fan the query out to every matching queryable.
payload – Optional raw payload bytes sent with the query.
timeout_ms – Query timeout in milliseconds.
target – zenoh-c query target: 0 = BEST_MATCHING (default), 1 = ALL, 2 = ALL_COMPLETE.
- Returns:
Raw replies (key, payload, attachment, encoding, is_error) received before timeout. May be empty.
- Raises:
rb_zenoh::ZenohTransportError – If the session is not open or the query cannot be sent, even after one reconnect and retry.
std::runtime_error – If
topicis not a valid key expression.
- query_all(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, topic: str, payload: list[int] | None = None, timeout_ms: int = 1000, target: int = 0) list[rb_sdk.rb_sdk_cpp.RawReply]#
Sends a raw zenoh query and returns every successful raw reply.
Like query(), but error replies are dropped from the result. Use it to collect answers from several responders, for example with a wildcard key expression. Getting no reply is not an error.
- Parameters:
topic – Zenoh key expression to query.
payload – Optional raw payload bytes sent with the query.
timeout_ms – Query timeout in milliseconds.
target – zenoh-c query target: 0 = BEST_MATCHING (default), 1 = ALL, 2 = ALL_COMPLETE.
- Returns:
Successful raw replies received before timeout. May be empty.
- Raises:
rb_zenoh::ZenohTransportError – If the session is not open or the query cannot be sent, even after one reconnect and retry.
- query_one(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, topic: str, payload: list[int] | None = None, timeout_ms: int = 1000, target: int = 0) rb_sdk.rb_sdk_cpp.RawReply#
Sends a raw zenoh query and returns one raw reply.
Waits for the query to finish (all replies or
timeout_ms),then returns the first non-error reply. This is the usual call for a service RPC that has exactly one responder.In Python, ZenohNoReply and ZenohTransportError keep their rb_zenoh exception types, which the FastAPI services map to HTTP 504 and 502.
- Parameters:
topic – Zenoh key expression to query.
payload – Optional raw payload bytes sent with the query.
timeout_ms – Query timeout in milliseconds. With the single reconnect-and-retry, the worst case is about twice this value.
target – zenoh-c query target: 0 = BEST_MATCHING (default), 1 = ALL, 2 = ALL_COMPLETE.
- Returns:
The first successful raw reply (key, payload, attachment, encoding, is_error = false).
- Raises:
rb_zenoh::ZenohTransportError – If the session is not open or the query cannot be sent, even after one reconnect and retry.
rb_zenoh::ZenohNoReply – If no reply arrives before timeout, even after one reconnect and retry.
rb_zenoh::ZenohReplyError – If only error replies arrive. The message contains the first error payload. Not retried.
- receive_one(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, topic: str, timeout_ms: int = 1000, self_sender_id: str = '') rb_sdk.rb_sdk_cpp.QueuedSample#
Receives one raw queued sample from
topic.Declares a temporary subscriber, waits for the first sample published after this call, undeclares the subscriber, and returns the sample. Samples published before the call are not seen. Use it to wait for the next value of a periodic stream or for a one-off event.
- Parameters:
topic – Zenoh key expression to receive from.
timeout_ms – Receive timeout in milliseconds. With the single reconnect-and-retry, the worst case is about twice this value.
self_sender_id – Sender id to ignore when filtering self-originated samples. Empty means no filtering.
- Returns:
Raw queued sample (key, payload, attachment).
- Raises:
rb_zenoh::ZenohNoReply – If no sample arrives before timeout, even after one reconnect and retry.
- register_zenoh_queryable(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, topic: str) None#
Registers an externally declared queryable topic for cleanup by close().
Same as register_zenoh_subscriber() for queryables. Registering a topic also makes later zenoh_queryable() calls for that topic on this instance a no-op, because the topic is treated as already declared.
- Parameters:
topic – Zenoh key expression of the queryable.
- register_zenoh_subscriber(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, topic: str) None#
Registers an externally declared subscriber topic for cleanup by close().
Use this when a subscriber was declared on the shared zenoh session by some path other than zenoh_subscribe() and should still be removed when this instance is closed or disconnected. Cleanup is by topic, so every subscriber on that topic in the shared session is removed.
- Parameters:
topic – Zenoh key expression of the subscriber.
- transmit_can(self: rb_sdk.rb_sdk_cpp.RBBaseSDK, *, channel: str, arbitrationId: int, data: list[int] = [], dlc: int = 0, isExtendedId: bool = False, isRemoteFrame: bool = False, isFd: bool = False, bitrateSwitch: bool = False, isErrorFrame: bool = False, errorStateIndicator: bool = False, timestamp: float = 0.0, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) rb_schemas.fbs_types.ipc.ResponseCANTransmitTD#
Transmits one CAN/CAN-FD frame through the host_pcan service.
Sends a request on “muscat/can/transmit” (1 s timeout) carrying one IPC::CANMessageT. The channel must have been opened with connect_can(). The call returns once the host service has handed the frame to the bus, not when another node acknowledges it. Same success and error handling as connect_can().
In Python the keyword arguments use the FlatBuffer field names: channel, arbitrationId, data, dlc, isExtendedId, isRemoteFrame, isFd, bitrateSwitch, isErrorFrame, errorStateIndicator, timestamp, flow_manager_args (all keyword-only).
- Parameters:
channel – CAN channel name previously passed to connect_can().
arbitration_id – CAN arbitration id: 11-bit (0x000-0x7FF) for a standard id, 29-bit for an extended id.
data – Frame payload bytes: up to 8 for classic CAN, up to 64 for CAN-FD.
dlc – Data length code. 0 lets the backend derive it from
data.is_extended_id – Whether
arbitration_idis an extended (29-bit) id.is_remote_frame – Whether the frame is a remote transmission request (no data).
is_fd – Whether the frame is CAN-FD.
bitrate_switch – Whether the CAN-FD data phase uses the faster data bitrate.
is_error_frame – Whether the frame is an error frame.
error_state_indicator – CAN-FD error-state indicator flag.
timestamp – Optional frame timestamp in seconds. 0 means unset.
flow_manager_args – Optional PyFM step context. If provided, the step is marked done on success and an unsuccessful response raises.
- Returns:
IPC::ResponseCANTransmitT returned by the host service.
- Raises:
std::runtime_error – If no response is received, or if
flow_manager_argsis provided and the response reports failure.rb_zenoh::ZenohNoReply – , rb_zenoh::ZenohTransportError If the host service cannot be reached.
- zenoh_queryable(topic, *, flatbuffer_req_T_class=None, flatbuffer_res_buf_size=None)#
Decorator that serves zenoh queries on a topic with the decorated function.
Usage:
@sdk.zenoh_queryable("my_plugin/add", flatbuffer_req_T_class=AddReqT, flatbuffer_res_buf_size=256) def on_add(*, req): return AddResT(result=req.a + req.b)
The handler runs on an rb_zenoh worker thread for every query. It is called with keyword arguments only, and receives only the names it declares:
key(str): the key expression of the query.params(str): the selector parameters of the query.payload/dict_payload(dict | None): the query payload parsed as UTF-8 JSON; None if absent or not JSON.raw_payload(bytes): the raw query payload (b”” if absent).req: the payload decoded withflatbuffer_req_T_classwhen it is given; None otherwise or if decoding fails.attachment(str): the raw query attachment string.
The return value becomes the reply:
None: no reply is sent; the caller sees no answer from this queryable.FlatBuffer object (has
Pack), or a dict whoseobj_payloadis one: packed and sent. Requiresflatbuffer_res_buf_size.dict: sent as UTF-8 JSON.bytes/bytearray/list[int]: sent as raw bytes.Anything else raises TypeError.
If the handler raises, the error is printed and no reply is sent. If
flatbuffer_req_T_classis given and the query has no payload, the handler is not called and no reply is sent.- Parameters:
topic – Zenoh key expression to serve.
flatbuffer_req_T_class – Optional FlatBuffer object class used to decode the request into
req.flatbuffer_res_buf_size – Initial FlatBuffer builder size in bytes, required when the handler returns a FlatBuffer object.
- Returns:
A decorator that registers the handler and returns it unchanged.
A second declaration of the same topic on the same SDK is ignored with a warning. The queryable lives until
close()ordisconnect().
- zenoh_subscribe(topic, *, flatbuffer_obj_t=None, opts=None)#
Decorator that subscribes the decorated function to a zenoh topic.
Usage:
@sdk.zenoh_subscribe("robot/state", flatbuffer_obj_t=StateT) def on_state(*, topic, obj_payload, attachment): ...
The callback runs on an rb_zenoh dispatch worker thread (not the asyncio loop) for every sample. It is called with keyword arguments only, and receives only the names it declares:
topic(str): the key of the received sample.mv(memoryview): the raw payload bytes.dict_payload(dict | None): the payload parsed as UTF-8 JSON whenflatbuffer_obj_tis not given; None if it is not JSON.obj_payload: the payload decoded withflatbuffer_obj_t.InitFromPackedBufwhenflatbuffer_obj_tis given, with bytes fields converted to str; None if decoding fails.attachment(dict):{"sender": ..., "sender_id": ...}parsed from the sample attachment.
- Parameters:
topic – Zenoh key expression to subscribe to. Wildcards are allowed.
flatbuffer_obj_t – Optional FlatBuffer object class (the
...Tclass) used to decode the payload intoobj_payload.opts – Optional
rb_zenoh.schema.SubscribeOptionsorrb_zenoh._core.CppSubscribeOptions(queue size, overflow policy, dispatch mode, rate limit). Defaults keep only the newest pending sample when the callback falls behind.
- Returns:
A decorator. The decorator registers the function and returns it unchanged, so it can still be called directly.
The subscription lives until
close()ordisconnect()of this SDK. Exceptions raised by the callback are not propagated to the caller ofzenoh_subscribe.
- class rb_sdk.RBManipulateSDK(*args, **kwargs)#
Bases:
RBBaseSDKRainbow Robotics manipulate SDK aggregate.
Groups the manipulate domain’s program, motion, configuration, IO, data, point, service, maintenance, safety, flange, state, and vision SDKs under one root object while sharing the RBBaseSDK zenoh session lifecycle.
- before_close(self: rb_sdk.rb_sdk_cpp.RBManipulateSDK) None#
- property config#
Robot configuration and parameter SDK.
- connect(self: rb_sdk.rb_sdk_cpp.RBManipulateSDK, arg0: rb_sdk.rb_sdk_cpp.ConnectOptions) str | None#
- property flange#
Flange peripheral SDK.
- property get_data#
State and data lookup SDK.
- property io#
Digital/analog IO SDK.
- property maintenance#
Maintenance/admin settings SDK.
- property move#
Robot motion command SDK.
- move_finish_at_stop(self: rb_sdk.rb_sdk_cpp.RBManipulateSDK, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Deprecated alias for program.folder_finish_at().
- property point#
Point and coordinate helper SDK.
- property program#
Program lifecycle and program-flow SDK.
- property safety#
Safety function SDK.
- property service#
Move mini-tab service SDK.
- property state#
State/data observation SDK.
- property vision#
Vendor vision integration SDK.
- class rb_sdk.RBPluginCall(plugin_id=None)#
Bases:
pybind11_object- call(keyexpr, *, payload=<object object>, timeout=3.0, **kwargs)#
- property connected#
- property data_dir#
Returns this plugin’s persistent data directory, creating it if missing.
Store files the plugin must keep (state, caches, user settings) here. The install directory (the process working directory) is replaced on every plugin update, so anything written there is lost. This directory survives updates and restarts, and is removed when the plugin is deleted.
Resolves to
RB_PLUGIN_DATA_DIR(set by Muscat when it starts the plugin); when unset,/app/data/runtime/plugins/data/{plugin_id}is used.- Returns:
Absolute path of the data directory.
- Raises:
std::filesystem::filesystem_error – If the directory cannot be created.
- property plugin_id#
- publish(topic, payload=None, **_)#
- property router#
- serve(keyexpr, handler=None, **_)#
- subscribe(topic, callback=None, **_)#
- undeclare_queryable(keyexpr=None)#
- unserve(keyexpr=None)#
- unsubscribe(topic=None, callback=None)#
- unsubscribe_topic(topic=None, callback=None)#
- class rb_sdk.RBProgramSDK(*args, **kwargs)#
Bases:
RBBaseSDK- alarm(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, title: str, content: str, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Publishes a program dialog alarm.
- Parameters:
title – Dialog title. Falls back to “No Title” when empty.
content – Dialog content.
robot_model – Name of the robot model.
flow_manager_args – Optional PyFM step context. If provided, the step is marked done immediately after the alarm is published.
- alarm_or_halt(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, robot_model: str, option: str, save_log: bool, is_only_at_ui: bool, pause_option: str, title: object, content: object, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None) None#
Raises an alarm and/or halts execution, depending on
option.- Parameters:
robot_model – Name of the robot model.
option – “ALARM” (publish an alarm dialog), “HALT” (stop the step’s context), “FOLDER_HALT” (break out of the enclosing folder), or “SUB_PROGRAM_HALT” (halt the enclosing sub task).
save_log – If true, also emits a USER-level log entry with
content(ortitleifcontentis None).is_only_at_ui – If true and the step is not running from a UI execution, the step is marked done and this call is a no-op.
pause_option – “ALL” (pause every process) or “CURRENT” (pause only this context). Only consulted when
optionresolves to a pause.title – Alarm dialog title (used when
optionis “ALARM”, and as the log fallback content whensave_logis set andcontentis None).content – Alarm dialog / log content.
flow_manager_args – PyFM step context. Required; the step is marked done after the alarm/halt/pause sequence completes.
- all_pause(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Pauses every running program process on this robot.
- Parameters:
flow_manager_args – Optional PyFM step context. If provided, the step’s own execution context is paused too, after the broadcast pause request.
- all_stop(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Stops every running program process on this robot.
- Parameters:
flow_manager_args – Optional PyFM step context. If provided, the step is marked done after the broadcast stop request.
- before_close(self: rb_sdk.rb_sdk_cpp.RBProgramSDK) None#
- call_event_tree(*, trees, index, task_id=None, target_step_id=None, _post_run=False, flow_manager_args=None)#
Execute one event-sub-task tree from a list[rb_flow_manager.step.Step].
- Parameters:
trees (list['rb_flow_manager.step.Step'])
index (int)
task_id (str | None)
target_step_id (str | None)
_post_run (bool)
flow_manager_args (rb_schemas.sdk.FlowManagerArgs | None)
- change_program(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, program_id: str | None = None, program_name: str | None = None, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
- debug_variables(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, robot_model: str, option: str, is_only_at_ui: bool, variables: object, log_content: object = None, pause_option: str = 'ALL', flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Reports the current values of
variablesfor debugging, then pauses.Compares each variable’s raw (pre-evaluation) string against its evaluated JSON value; numeric values/lists are rounded to 3 decimals for display, and unchanged variables are reported as “Undefined”.
- Parameters:
robot_model – Name of the robot model.
option – “DIALOG” (publish a single alarm dialog listing every variable) or “LOG” (emit one USER-level log entry per variable).
is_only_at_ui – If true and the step is not running from a UI execution, the step is marked done and this call is a no-op.
variables – Evaluated current variable values, in the same order as
flow_manager_args'sraw “variables” list.log_content – Optional extra USER-level log entry (any value; non- str is JSON-encoded) appended after the per-variable LOG entries.
pause_option – “ALL” (pause every process) or “CURRENT” (pause only this context).
flow_manager_args – Optional PyFM step context. Required for this call to do anything; the step is marked done after pausing.
- get_digital_input(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, robot_model: str) list[int] | None#
Queries the digital input state of
robot_model.- Parameters:
robot_model – Name of the robot model.
- Returns:
The digital input list, or std::nullopt if the robot has no {robot_model}/get_digital_input zenoh queryable (e.g. not connected / not running).
- get_rpc(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, module_name: str) RpcManager#
Returns the RpcManager registered for
module_name,creating it on first use.- Parameters:
module_name – PFM task id used as the RpcManager cache key.
- Returns:
The RpcManager instance for
module_name,owned by rpc_managers_.
- interface(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, option: str, data: dict, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Dispatches a protocol interface call (Modbus/MC/XGT/socket) via the native RpcManager cached for this step’s task id (rpc_managers_).
- Parameters:
option (str) – “MODBUS_CLIENT”, “MC_PROTOCOL”, “XGT_PROTOCOL”, or “SOCKET_INTERFACE”.
data (rb_schemas.fbs_types.muscat.InterfaceModbusClientPayloadTD | rb_schemas.fbs_types.muscat.InterfaceMcProtocolPayloadTD | rb_schemas.fbs_types.muscat.InterfaceXgtProtocolPayloadTD | rb_schemas.fbs_types.muscat.InterfaceSocketPayloadTD) – Protocol payload generated from manipulate.fbs. Must contain a non-empty “server_ip” and a “type” of “READ”/”WRITE” (plus “CONNECT” for SOCKET_INTERFACE).
flow_manager_args (rb_schemas.sdk.FlowManagerArgs | None) – Optional PyFM step context. Required for this call to do anything — if omitted, returns immediately without dispatching to any protocol. When provided, it’s forwarded to the underlying execute_* call and the step is marked done after dispatch.
- Raises:
std::runtime_error – If
optionordata["type"]is unsupported for the givenoption.
- log(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, content: str, robot_model: str, level: str, disable_db: bool = False, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Emits a program log entry.
- Parameters:
content – Log message content.
robot_model – Name of the robot model this log entry is associated with.
level – Log level (“INFO”, “WARNING”, “ERROR”, “USER”, “DEBUG”, or “GENERAL”).
disable_db – Unused (kept for parity with the Python original, which also never reads this parameter).
flow_manager_args – Optional PyFM step context. If provided, the step is marked done immediately after the log entry is published.
- make_script(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, mode: str = 'ADVANCED', contents: str | None = None, flow_manager_args: object = None) None#
Runs a program script step, in either GENERAL or ADVANCED mode.
In GENERAL mode,
flow_manager_args's“general_contents” argument is evaluated as a single expression against the step’s context (assignments are reflected into state). In ADVANCED mode,contentsis compiled and executed as an arbitrary python script with variables/var, update_variable, update_var/update, get_var/get, done, pause, stop, resume, check_stop, and rb_log injected into its globals (the bridge builds that env fromflow_manager_args;compile/exec runs on the PyFM side in ctx.run_advanced_script). rb_log is this SDK’s own log (RBBaseSDK::log), called as rb_log(content, robot_model, level).- Parameters:
mode – “GENERAL” or “ADVANCED”.
contents – ADVANCED-mode script source. Required when
modeis “ADVANCED”.flow_manager_args – PyFM step context. Required; the step is marked done when the script finishes (or immediately raises, in ADVANCED mode, since the step is still marked done before the exception propagates).
- Raises:
std::runtime_error – If GENERAL mode is missing “general_contents”, or ADVANCED mode is missing
contents.
- plugin_execute(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, plugin_id: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None, **kwargs) None#
Sends an execute request to a plugin process and waits until it reports completion (or stop). Concurrent calls for the same
plugin_idare serialized so their control queryables don’t collide.- Parameters:
plugin_id – Target plugin id; the request is sent to “muscat/plugin/{plugin_id}/execute” and control messages are exchanged over “muscat/plugin/{plugin_id}/control”.
user_args – Execute request JSON object. The Python binding collects **kwargs into this object.
flow_manager_args – PyFM step context. Required; the step is marked done once the plugin reports “done” (directly, or by exiting its control loop after “stop”).
- Raises:
std::runtime_error – If
flow_manager_argsis not provided, or if the plugin is not running/responding to the execute request.
- set_variables(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, variables: object, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Initializes local task variables from their configured init values.
- Parameters:
variables – List of variable definition dicts, each carrying an “init_value” key, in the same order as the task’s declared variables.
flow_manager_args – Optional PyFM step context. Required for this call to do anything — if omitted, returns immediately without touching
variables.When provided, each variable is applied viaflow_manager_args'slocal variable updater and the step is marked done afterwards.
- simple_wait(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, second: float, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Blocks the calling thread for
secondseconds, polling for stop/pause requests every 1/50s. Time spent blocked inside a pause is excluded from the wait duration.- Parameters:
second – Seconds to wait. Must be greater than 0 when
flow_manager_argsis not provided (a standalone caller has no other way to be notified that the wait was skipped).flow_manager_args – Optional PyFM step context. If provided, the step is marked done once the wait elapses (or immediately, if
second<= 0).
- Raises:
std::runtime_error – If
second<= 0 andflow_manager_argsis not provided.
- user_input(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, robot_model: str, var_selection: object, var_form: str = 'STRING', flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
- user_select(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, robot_model: str, ask_ment: object, var_name: object, content: object, timeout: object, disconn_timeout: object, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
- wait(self: rb_sdk.rb_sdk_cpp.RBProgramSDK, *, robot_model: str, wait_type: str = 'TIME', mode: str = 'GENERAL', second: float | None = None, digital_input: rb_sdk.base_sdk.base_schema.DigitalInputConditionSchema | None = None, time_out: float | None = None, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) None#
Blocks until the requested wait condition is satisfied (or times out), polling for stop requests every 10ms.
- Parameters:
robot_model – Name of the robot model (used for DIGITAL_INPUT polling).
wait_type – “TIME” (delegates to simple_wait()), “HOLDING” (wait while the condition holds), or “EXIT” (wait until the condition becomes true / the digital input matches).
mode – “GENERAL” (evaluate
flow_manager_args's“condition” expression) or “DIGITAL_INPUT” (poll get_digital_input() againstdigital_input'sexpected signal pattern).second – Wait duration in seconds, used only when
wait_typeis “TIME”.digital_input – Digital input condition dict (“signal” list and optional “logical_operator”, “AND” by default). Required when
modeis “DIGITAL_INPUT”.time_out – Optional timeout in seconds; the wait loop breaks once elapsed time reaches this value, regardless of whether the condition was satisfied.
flow_manager_args – Optional PyFM step context. Required for this call to do anything — if omitted, returns immediately without waiting (despite the default of py::none(), calling this standalone is a no-op). The step is marked done once the wait loop exits.
- class rb_sdk.RBRby1SDK(*args, **kwargs)#
Bases:
RBBaseSDKRainbow Robotics RB-Y1 SDK (공식 rby1-sdk C++ 위의 muscat SDK).
인스턴스는 얇은 핸들이고 로봇 gRPC 연결은 프로세스에 하나다 — 몇 번 생성해도 같은 연결을 쓴다. Python 에서 메서드는 기본 async (gRPC 대기를 C++ worker 스레드에서 GIL 없이),
sdk.sync.<method>는 동기. 로봇 연결은 connect_robot/disconnect_robot 이다 — RBBaseSDK.connect/disconnect 는 zenoh 원격 peer 등록.- approach_j(self, *, robot_model: str, target: dict[str, list[float]], controllers: dict[str, str | dict[str, Any]] = {}, minimum_time: float = 3.0, priority: int = 1) Coroutine[Any, Any, bool]#
Approach J — move_j 와 같은 관절 이동을 시작만 하고 바로 돌아온다 (UI “이 자세로 이동” 용).
완료를 기다리지 않는다 (목표에 닿으면 로봇이 스스로 멈춘다). approach_stop 으로 중단한다. 진행 중 approach 가 있으면 먼저 취소하고 시작한다. 로봇이 거부하면 RBY1Error (사유 포함). 임피던스 컨트롤러는 유지 명령이라 허용하지 않는다 (position 만).
- Parameters:
robot_model – 연결된 model.
target – move_j 와 같음.
controllers – 부위별 컨트롤러 — “position” 만.
minimum_time – 최소 이동 시간 [s].
priority – 명령 우선순위.
- Returns:
True (명령을 보냈다).
- Raises:
ValueError – move_j 와 같음 + 임피던스 컨트롤러.
RBY1ConnectionError – 미연결. RBY1Error model 불일치·gRPC 실패·enable 실패·smooth jog 중.
- approach_l(self, *, robot_model: str, target: dict[str, list[float]], reference: str = 'base', controllers: dict[str, str | dict[str, Any]] = {}, minimum_time: float = 3.0, priority: int = 1) Coroutine[Any, Any, bool]#
Approach L — move_l 과 같은 Cartesian 이동을 시작만 하고 바로 돌아온다. 규칙은 approach_j 와 같다.
- Parameters:
robot_model – 연결된 model.
target – move_l 과 같음.
reference – “base” 또는 “link_torso_5”.
controllers – 부위별 컨트롤러 — “position” 만.
minimum_time – 최소 이동 시간 [s].
priority – 명령 우선순위.
- Returns:
True (명령을 보냈다).
- Raises:
ValueError – move_l 과 같음 + 임피던스 컨트롤러.
RBY1ConnectionError – 미연결. RBY1Error model 불일치·gRPC 실패·enable 실패·smooth jog 중.
- approach_stop(self, *, robot_model: str) Coroutine[Any, Any, bool]#
진행 중인 approach 를 중단한다 (공식 Cancel, 끝날 때까지 최대 1.5s 대기). 없으면 아무것도 안 한다.
- Parameters:
robot_model – 연결된 model.
- Returns:
중단한 approach 가 있었으면 True.
- brake_engage(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
관절 브레이크를 건다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 관절 이름 정규식.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- brake_release(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
관절 브레이크를 푼다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 관절 이름 정규식.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- cancel_control(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
진행 중인 제어(명령)를 취소한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- cartesians_from_position(self, *, robot_model: str, position: list[float], reference: str = 'base') Coroutine[Any, Any, dict[str, list[float]]]#
관절값 → 손·T5 자세 (FK). gRPC 없이 캐시된 dynamics 모델로 계산한다 (20Hz 상태 콜백용).
- Parameters:
robot_model – 연결된 model.
position – 관절값 [rad], state.position 그대로.
reference – “base” (기본) 또는 “link_torso_5” — move_l / smoothjog_l 의 reference 와 같은 기준.
- Returns:
- {“torso”: pose, “right_arm”: pose, “left_arm”: pose} — Base
기준 link_torso_5 / ee_right / ee_left. link_torso_5: {“right_arm”: pose, “left_arm”: pose} — T5 기준 손 자세 (torso 자신은 항등이라 없음). pose = [x_mm, y_mm, z_mm, rx_deg, ry_deg, rz_deg] (R = Rz·Ry·Rx).
- Return type:
base
- Raises:
ValueError – position 길이가 DOF 와 다름, 모르는 reference. RBY1ConnectionError 미연결. RBY1Error model 불일치·모델 로드 실패.
- connect_robot(self, *, endpoint: str | None = None, model: str | None = None, max_retries: int = 5, timeout_ms: int = 1000) Coroutine[Any, Any, str]#
RB-Y1 gRPC 서버에 연결하고 로봇 model 을 확정한다.
이미 같은 endpoint(기본값 해석 후)·같은 model(생략 시 무관)로 연결돼 있고 채널이 살아 있으면 no-op — 연결과 스트림을 그대로 두고 연결된 model 을 반환한다. 그 밖에는 기존 연결·스트림을 끊고 새로 연결한다.
- Parameters:
endpoint – “host:port”. None 이면 환경변수 RBY1_HOST(없으면 192.168.30.1) + “:50051”.
model – “a” / “m” / “ub”. 주면 그 model 이 아닐 때 실패한다. 생략하면 로봇이 알려준 model.
max_retries – 연결 재시도 횟수.
timeout_ms – 시도당 타임아웃(ms).
- Returns:
연결된 model 이름 (“a” / “m” / “ub”).
- Raises:
RBY1ConnectionError – 연결 실패 또는 model 불일치.
- connect_wifi(self, *, robot_model: str, ssid: str, password: str = '', use_dhcp: bool = True, ip_address: str = '', gateway: str = '', dns: list[str] = [], flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
WiFi 네트워크에 연결한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
ssid – 네트워크 이름.
password – 비밀번호.
use_dhcp – DHCP 로 IP 를 받을지 여부.
ip_address – 고정 IP 주소 (use_dhcp=False 일 때).
gateway – 게이트웨이 주소.
dns – DNS 서버 목록.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- control(self, *, robot_model: str, callback: Callable[[Any], Any], port: int = 0, priority: int = 1, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
실시간(UDP) 제어 루프를 돈다 — 콜백이 finish=True 를 돌려줄 때까지 막힌다.
로봇이 보내는 상태 패킷마다 callback(state) 를 부르고 돌려준 입력을 로봇에 보낸다. 콜백은 제어 루프를 도는 스레드에서 불린다 (async: SDK worker 스레드, sync: 호출한 스레드) — 가볍게 유지해야 실시간성이 지켜진다. 콜백 예외는 제어를 끝내고(로봇 RT 명령 취소) 그 예외를 그대로 호출자에게 던진다. async 호출을 기다리던 쪽이 취소되면(Task.cancel, asyncio.wait_for 타임아웃, 루프 종료) 다음 상태 패킷에 콜백 없이 직전 입력(없으면 현재 위치 유지, gain 0)을 finish=True 로 보내 로봇이 제어를 끝낸다 — 이때 flow_manager_args.done() 은 부르지 않는다. sync 는 콜백의 finish 로만 끝난다. 실행 중 async control 은 SDK worker 4개 중 하나를 쓴다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
callback – callback(state) -> input — state 는 rby1.Robot_A_ControlState 등, input 은 같은 model 의 rby1.Robot_A_ControlInput 등 (공식 타입).
port – 로컬 UDP 포트. 0 이면 OS 가 고른다.
priority – RT 제어 명령 우선순위.
flow_manager_args – Optional PyFM step context. finish=True 로 끝나면 done() 을 호출한다.
- Returns:
True (finish=True 로 끝남).
- Raises:
RBY1Error – finish 없이 끝남(UDP bind 실패, 로봇 거부·선점·취소, 연결 끊김) 또는 호출 실패. RBY1ConnectionError 미연결. 콜백이 던진 예외는 그대로.
- create_command_stream(self, *, robot_model: str, priority: int = 1) Coroutine[Any, Any, rb_sdk.rb_sdk_cpp.RBRby1CommandStream]#
명령 스트림을 연다 (한 연결로 명령을 연이어 보낸다).
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
priority – 스트림 우선순위 (첫 명령에 실린다).
- Returns:
RBRby1CommandStream.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- disable_control_manager(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
control manager 를 끈다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- disconnect_robot(self) Coroutine[Any, Any, bool]#
로봇 gRPC 연결을 끊는다 (스트림도 모두 멈춘다).
- Returns:
연결이 있었으면 true.
- disconnect_wifi(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
WiFi 연결을 끊는다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- download_file(self, *, robot_model: str, path: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bytes]#
로봇의 파일을 내려받는다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
path – 로봇 파일 경로 (RBY1_HOME 기준 상대 경로).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
파일 내용 (bytes).
- Raises:
RBY1Error – 파일 없음·로봇 에러·gRPC 실패. RBY1ConnectionError 미연결.
- emergency_stop(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, dict[str, bool]]#
비상 정지 — 모션 정지(priority 10) 후 무조건 전원 차단(power_off “.*”). 물리 EMO 와 별개인 SW 트리거.
정지가 실패해도 stderr 에 로그를 남기고 전원 차단은 반드시 시도한다 (최후 안전장치). 재개하려면 power_on + servo_on + enable_control_manager 가 다시 필요하다. await 가 취소돼도 끝까지 수행한다.
- Parameters:
robot_model – 연결된 model.
flow_manager_args – Optional PyFM step context. 끝나면 done() 을 호출한다.
- Returns:
bool} (power_off 결과).
- Return type:
{“stopped”
- Raises:
RBY1ConnectionError – 미연결. RBY1Error model 불일치·전원 차단 gRPC 실패.
- enable_control_manager(self, *, robot_model: str, unlimited_mode_enabled: bool = False, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
control manager 를 켠다. 로봇에 명령을 보내기 전에 불러야 한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
unlimited_mode_enabled – unlimited 모드 사용 여부.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- factory_reset_all_parameters(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, None]#
모든 파라미터를 공장 기본값으로 되돌린다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- factory_reset_parameter(self, *, robot_model: str, name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
파라미터 하나를 공장 기본값으로 되돌린다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
name – 파라미터 이름.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- get_control_manager_state(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, rb_sdk.rb_sdk_cpp.rby1.ControlManagerState]#
control manager 상태를 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
rby1.ControlManagerState (공식 타입).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_dynamics(self, *, robot_model: str, urdf_model: str = '', flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, rb_sdk.rb_sdk_cpp.rby1.dynamics.Robot_24 | rb_sdk.rb_sdk_cpp.rby1.dynamics.Robot_26 | rb_sdk.rb_sdk_cpp.rby1.dynamics.Robot_18]#
로봇 동역학 모델을 만든다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
urdf_model – URDF 내용(경로가 아니다). 비우면 로봇에 저장된 모델(get_robot_model)을 쓴다.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
rby1.dynamics.Robot_24 / _26 / _18 (연결된 model 의 DOF, 공식 타입).
- Raises:
RBY1Error – 모델 조회·URDF 파싱 실패(관절 수 ≠ DOF 포함). RBY1ConnectionError 미연결.
- get_fault_log_list(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, list[str]]#
fault 로그 목록을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
fault 로그 항목 문자열 목록.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_head_position_pid_gains(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, list[rb_sdk.rb_sdk_cpp.rby1.PIDGain]]#
머리 관절들의 위치 제어 PID 게인을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
관절별 rby1.PIDGain 목록.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_joint_limits(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, dict[str, dict[str, Any]]]#
관절 리밋 조회 (로봇 dynamics 모델). move_j 전 목표 검증용.
- Parameters:
robot_model – 연결된 model.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
{“position”: [lo, hi] rad, “velocity”: [lo, hi] rad/s, “acceleration”: [lo, hi] rad/s^2, “torque”: Nm}} (공식 dynamics 관절 순서).
- Return type:
{관절명
- Raises:
RBY1ConnectionError – 미연결. RBY1Error model 불일치·gRPC 실패·dynamics 모델 로드 실패.
- get_last_log(self, *, robot_model: str, count: int, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, list[rb_sdk.rb_sdk_cpp.rby1.Log]]#
최근 로그를 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
count – 가져올 로그 개수.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
rby1.Log 목록 (공식 타입).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_left_arm_position_pid_gains(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, list[rb_sdk.rb_sdk_cpp.rby1.PIDGain]]#
왼팔 관절들의 위치 제어 PID 게인을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
관절별 rby1.PIDGain 목록.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_parameter(self, *, robot_model: str, name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, str]#
로봇 파라미터 값을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
name – 파라미터 이름.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
파라미터 값 (문자열).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_parameter_list(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, list[tuple[str, int]]]#
파라미터 목록을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
(파라미터 이름, 타입) 목록.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_position_pid_gain(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, rb_sdk.rb_sdk_cpp.rby1.PIDGain]#
특정 장치의 위치 제어 PID 게인을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
rby1.PIDGain (공식 타입).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_right_arm_position_pid_gains(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, list[rb_sdk.rb_sdk_cpp.rby1.PIDGain]]#
오른팔 관절들의 위치 제어 PID 게인을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
관절별 rby1.PIDGain 목록.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_robot_info(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, rb_sdk.rb_sdk_cpp.rby1.RobotInfo]#
로봇 정보(model, 관절·장치 목록 등)를 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
rby1.RobotInfo (공식 타입).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_robot_model(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, str]#
로봇에 저장된 로봇 모델(URDF) 문자열을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
로봇 모델 문자열.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_serial_device_list(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, list[rb_sdk.rb_sdk_cpp.rby1.SerialDevice]]#
로봇의 시리얼 장치 목록을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
rby1.SerialDevice 목록 (공식 타입).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_state(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, rb_sdk.rb_sdk_cpp.rby1.RobotState_A | rb_sdk.rb_sdk_cpp.rby1.RobotState_M | rb_sdk.rb_sdk_cpp.rby1.RobotState_UB]#
현재 로봇 상태를 한 번 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
rby1.RobotState_A / _M / _UB (연결된 model 의 공식 타입).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_system_time(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, tuple[datetime.datetime, str]]#
로봇 시스템 시간을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
(datetime, local_time) — 로봇 타임존의 aware datetime 과 로봇의 로컬 시간 문자열 (공식 Python 바인딩과 같은 형태). 로봇이 타임존을 주지 않으면 datetime 은 UTC.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_time_scale(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, float]#
현재 모션 시간 배율(time scale)을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
현재 time scale (0.0~1.0).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_torso_position_pid_gains(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, list[rb_sdk.rb_sdk_cpp.rby1.PIDGain]]#
몸통(torso) 관절들의 위치 제어 PID 게인을 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
관절별 rby1.PIDGain 목록.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- get_wifi_status(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, rb_sdk.rb_sdk_cpp.rby1.WifiStatus | None]#
WiFi 연결 상태를 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
rby1.WifiStatus (공식 타입). 로봇이 에러 응답을 주면 None.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- has_established_time_sync(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
시간 동기화가 한 번이라도 성공했는지 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
동기화됐으면 True.
- Raises:
RBY1ConnectionError – 미연결.
- home_offset_reset(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
장치의 home offset 을 초기화한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름 정규식.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- import_robot_model(self, *, robot_model: str, name: str, model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
로봇 모델(URDF)을 로봇에 등록한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
name – 모델 이름.
model – 모델 데이터 (URDF 문자열).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- is_power_on(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
장치 전원이 켜져 있는지 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름 정규식. 매칭된 장치가 모두 켜져 있어야 True.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
매칭된 장치가 모두 켜져 있으면 True.
- Raises:
RBY1Error – 매칭 장치 없음 또는 호출 실패. RBY1ConnectionError 미연결.
- static is_robot_connected() bool#
로봇 gRPC 연결 여부 — 연결된 로봇이 있고 그 gRPC 채널이 살아 있는지 (공식 IsConnected, RPC 없음).
채널 상태는 gRPC 가 마지막으로 관찰한 것이다: 서버가 죽은 뒤 호출이 한 번 실패해야 false 가 되고, 채널이 스스로 재연결하면 다시 true 가 된다 (connect_robot 불필요).
- Returns:
연결돼 있으면 true.
- is_servo_on(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
관절 서보가 켜져 있는지 조회한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 관절 이름 정규식.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
서보가 켜져 있으면 True.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- static log_stream_stats(*, robot_model: str) dict[str, int]#
로그 스트림 통계 (멈춘 뒤에도 마지막 값).
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”).
- Returns:
수신 batch 수, “delivered”: 콜백 호출 수, “dropped”: 대기열이 넘쳐 버린 batch 수, “resubscribes”: 끊긴 스트림을 다시 구독한 수}.
- Return type:
{“received”
- property model#
연결된 로봇 model.
- Returns:
“a” / “m” / “ub”, 미연결이면 None.
- move_j(self, *, robot_model: str, target: dict[str, list[float]], controllers: dict[str, str | dict[str, Any]] = {}, minimum_time: float = 3.0, priority: int = 1, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, dict[str, Any]]#
관절 이동 1회 — 컴포넌트별 목표 각도(deg) 로 이동하고 끝날 때까지 기다린다.
target 의 키가 곧 명령 부위. 컨트롤 매니저는 자동 복구한다. joint_impedance 는 minimum_time 유지 후 Ok. async await 가 취소되면 로봇 명령도 취소한다 (C++: rby1_rt::CancelScope::Enter).
- Parameters:
robot_model – 연결된 model.
target – 컴포넌트(“torso”/”right_arm”/”left_arm”/”head”) → 관절값 [deg], 컴포넌트 전체 길이.
controllers – 부위별 컨트롤러 (없으면 position). 팔: “position”/”joint_impedance”. torso·head: “position”.
minimum_time – 최소 이동 시간 [s].
priority – 명령 우선순위.
flow_manager_args – Optional PyFM step context. 정지면 로봇을 세우고 예외, 일시정지면 세웠다가 resume 뒤 남은 시간으로 재전송. 끝나면 done(). args[“variable”] 이 있으면 done 전에 그 이름의 변수에 끝난 자세 저장 (move_j: 부위별 관절 deg, move_l: reference 기준 pose — target 과 같은 형식).
- Returns:
bool, “finish_code”: str}. Ok 가 아니면 알림도 나간다.
- Return type:
{“finished”
- Raises:
ValueError – 빈 target, 모르는 컴포넌트, 길이 불일치, 유한수 아님, 허용 안 되는 컨트롤러.
RBY1ConnectionError – 미연결. RBY1Error model 불일치·gRPC 실패·enable 실패·smooth jog 중.
- move_l(self, *, robot_model: str, target: dict[str, list[float]], reference: str = 'base', controllers: dict[str, str | dict[str, Any]] = {}, minimum_time: float = 3.0, priority: int = 1, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, dict[str, Any]]#
Cartesian 이동 1회 — 손(ee_right/ee_left)·T5(link_torso_5) 자세로 이동하고 끝날 때까지 기다린다.
IK 는 로봇이 푼다. 나머지 규칙은 move_j 와 같다.
- Parameters:
robot_model – 연결된 model.
target – 컴포넌트(“torso”/”right_arm”/”left_arm”) → [x_mm, y_mm, z_mm, rx_deg, ry_deg, rz_deg] (R = Rz·Ry·Rx). torso 는 Base 기준, 손은 reference 기준.
reference – “base” 또는 “link_torso_5” (손 목표의 기준 — cartesians_from_position(reference) 와 같은 좌표).
controllers – 부위별 컨트롤러. 팔: “position”/”cartesian_impedance”/”impedance”. torso: “position”.
minimum_time – 최소 이동 시간 [s].
priority – 명령 우선순위.
flow_manager_args – move_j 와 같다.
- Returns:
bool, “finish_code”: str}.
- Return type:
{“finished”
- Raises:
ValueError – 빈 target, 모르는 컴포넌트·키, reference 오류, 유한수 아님, 허용 안 되는 컨트롤러.
RBY1ConnectionError – 미연결. RBY1Error model 불일치·gRPC 실패·enable 실패·smooth jog 중.
- open_serial_stream(self, *, robot_model: str, device_path: str, baudrate: int, bytesize: int = 8, parity: str = 'N', stopbits: int = 1, callback: Callable[[bytes], Any] | None = None) Coroutine[Any, Any, rb_sdk.rb_sdk_cpp.RBRby1SerialStream]#
로봇의 시리얼 장치 스트림을 연다 (장치는 반환된 스트림의 connect() 로 연다).
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
device_path – 장치 경로 (get_serial_device_list 의 path).
baudrate – 보드레이트.
bytesize – 데이터 비트 수.
parity – 패리티 (‘N’ / ‘E’ / ‘O’).
stopbits – 스톱 비트 수.
callback – callback(data: bytes) — 받은 데이터. 수신 전용 스레드에서 순서대로 불린다. None 이면 받지 않는다.
- Returns:
RBRby1SerialStream.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- power_off(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
장치 전원을 끈다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름 정규식 (예: “.*” 전체).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- power_on(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
장치 전원을 켠다. 켜진 장치는 건드리지 않고 꺼진 장치만 모아 한 번에 켠다 — 전부 켜져 있으면 아무것도 안 보내고 True.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름 정규식 (예: “.*” 전체, “^right_arm_.*”).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- reset_all_parameters(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, None]#
모든 파라미터를 기본값으로 되돌린다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- reset_battery_config(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
배터리 설정을 기본값으로 되돌린다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- reset_fault_control_manager(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
control manager 의 fault 를 해제한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- reset_network_setting(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
네트워크 설정을 기본값으로 되돌린다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- reset_odometry(self, *, robot_model: str, angle: float, position: numpy.ndarray[numpy.float64[2, 1]], flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
오도메트리를 주어진 값으로 초기화한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
angle – 새 각도 [rad].
position – 새 위치 [x, y] [m].
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- reset_parameter(self, *, robot_model: str, name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
파라미터 하나를 기본값으로 되돌린다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
name – 파라미터 이름.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- scan_wifi(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, list[rb_sdk.rb_sdk_cpp.rby1.WifiNetwork]]#
주변 WiFi 네트워크를 검색한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
rby1.WifiNetwork 목록 (공식 타입).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- send_command(self, *, robot_model: str, builder: rb_sdk_cpp.rby1.RobotCommandBuilder, priority: int = 1) Coroutine[Any, Any, rb_sdk.rb_sdk_cpp.RBRby1CommandHandle]#
로봇 명령을 보낸다 (수락까지만 — 완료는 핸들의 wait/get 으로 기다린다).
명령 완료가 PyFM step 완료이므로 flow_manager_args 는 핸들의 wait/get 에 넘긴다. 반환된 핸들을 버리면 명령이 취소된다 (공식 핸들 소멸자). await 가 실행 전에 취소되면 명령은 보내지 않는다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
builder – rby1.RobotCommandBuilder (공식 타입).
priority – 명령 우선순위 (높을수록 우선).
- Returns:
RBRby1CommandHandle.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- servo_off(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
관절 서보를 끈다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 관절 이름 정규식 (예: “.*” 전체).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- servo_on(self, *, robot_model: str, dev_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
관절 서보를 켠다. 켜진 관절(is_ready)은 건드리지 않고 꺼진 관절만 모아 한 번에 켠다 — 전부 켜져 있으면 아무것도 안 보내고 True.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 관절 이름 정규식 (예: “.*” 전체, “^torso_.*”).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_battery_config(self, *, robot_model: str, cutoff_voltage: float, fully_charged_voltage: float, coefficients: Annotated[list[float], FixedSize(4)], flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
배터리 설정을 바꾼다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
cutoff_voltage – 차단 전압 [V].
fully_charged_voltage – 완충 전압 [V].
coefficients – 배터리 계수 4개.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_battery_level(self, *, robot_model: str, level: float, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
배터리 잔량을 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
level – 배터리 잔량 [%] (0.0~100.0).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_led_color(self, *, robot_model: str, color: rb_sdk.rb_sdk_cpp.rby1.Color, duration: float = 1.0, transition_time: float = 0.0, blinking: bool = False, blinking_freq: float = 1.0, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
LED 색을 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
color – rby1.Color (공식 타입, RGB 0~255).
duration – 유지 시간 [s].
transition_time – 전환 시간 [s].
blinking – 깜빡임 여부.
blinking_freq – 깜빡임 주파수 [Hz].
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_parameter(self, *, robot_model: str, name: str, value: str, write_db: bool = True, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
로봇 파라미터 값을 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
name – 파라미터 이름.
value – 파라미터 값 (문자열).
write_db – DB 에도 기록할지 여부.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 해당 파라미터가 없거나 호출 실패. RBY1ConnectionError 미연결.
- set_position_d_gain(self, *, robot_model: str, dev_name: str, d_gain: int, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
장치의 위치 제어 D 게인을 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름 정규식.
d_gain – D 게인 (0~65535).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_position_i_gain(self, *, robot_model: str, dev_name: str, i_gain: int, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
장치의 위치 제어 I 게인을 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름 정규식.
i_gain – I 게인 (0~65535).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_position_p_gain(self, *, robot_model: str, dev_name: str, p_gain: int, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
장치의 위치 제어 P 게인을 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름 정규식.
p_gain – P 게인 (0~65535).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_position_pid_gain(self, *, robot_model: str, dev_name: str, p_gain: int, i_gain: int, d_gain: int, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
장치의 위치 제어 P/I/D 게인을 한 번에 설정한다. PIDGain 객체로 주려면 set_position_pid_gain_object.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름 정규식.
p_gain – P 게인 (0~65535).
i_gain – I 게인 (0~65535).
d_gain – D 게인 (0~65535).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_position_pid_gain_object(self, *, robot_model: str, dev_name: str, pid_gain: rb_sdk.rb_sdk_cpp.rby1.PIDGain, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
장치의 위치 제어 PID 게인을 PIDGain 객체로 설정한다 (공식 SetPositionPIDGain 의 PIDGain 오버로드).
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
dev_name – 장치 이름 정규식.
pid_gain – rby1.PIDGain (공식 타입).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_preset_position(self, *, robot_model: str, joint_name: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
관절의 preset 위치를 설정한다 (PVL 계열 모터만 지원).
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
joint_name – 관절 이름.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_system_time(self, *, robot_model: str, utc_time: datetime.datetime, time_zone: str | None = None, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
로봇 시스템 시간을 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
utc_time – 새 시간 (Python datetime.datetime; naive 면 로컬 시간으로 해석).
time_zone – 로봇 타임존 (예: “Asia/Seoul”). None 이면 타임존은 바꾸지 않는다.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_time_scale(self, *, robot_model: str, time_scale: float, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, float]#
모션 실행 시간 배율을 설정한다. 0.0 은 정지, 1.0 은 최대 속도.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
time_scale – 설정할 time scale (0.0~1.0).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
로봇에 실제 적용된 time scale.
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.
- set_tool_flange_digital_output(self, *, robot_model: str, name: str, channel: int, state: bool, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
툴 플랜지 디지털 출력 한 채널의 상태를 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
name – 팔 이름 (“right” / “left”).
channel – 디지털 출력 채널 번호.
state – True = ON, False = OFF.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_tool_flange_digital_output_dual(self, *, robot_model: str, name: str, state_0: bool, state_1: bool, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
툴 플랜지 디지털 출력 채널 0/1 의 상태를 동시에 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
name – 팔 이름 (“right” / “left”).
state_0 – 채널 0 상태 (True = ON).
state_1 – 채널 1 상태 (True = ON).
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- set_tool_flange_output_voltage(self, *, robot_model: str, name: str, voltage: int, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
툴 플랜지 출력 전압을 설정한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
name – 툴 플랜지 이름 (“right” / “left”).
voltage – 출력 전압 [V]. 보통 12 / 24, 0 이면 출력 끔.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇이 거부했거나 호출 실패. RBY1ConnectionError 미연결.
- static smooth_status(*, robot_model: str) str#
Smooth jog 상태 — “start”(정지 처리 중 포함) 또는 “stop”.
- Parameters:
robot_model – 연결된 model.
- Returns:
“start” 또는 “stop”.
- smoothjog_j(self, *, robot_model: str, target: dict[str, list[float]]) Coroutine[Any, Any, dict[str, list[float]]]#
Smooth J heartbeat — 관절 목표를 따라 연속 이동한다. 세션·정지 규칙은 smoothjog_l 과 같다.
호출마다 JointPositionCommand 1개 (minimum_time 0.15s, 10°/s, 30°/s²). 1회 변화량은 관절별 0.5° 이하.
- Parameters:
robot_model – 연결된 model.
target – 컴포넌트(“torso”/”right_arm”/”left_arm”/”head”) → 관절값 [deg], 컴포넌트 전체 길이. 비어 있으면 안 된다.
- Returns:
받아들인 목표 (target 과 같음).
- Raises:
ValueError – 키·길이 오류, 유한수 아님, 빈 target.
RBY1ConnectionError – 미연결. RBY1Error 변화량 초과·로봇 busy·컨트롤러 거부·gRPC 실패.
- smoothjog_l(self, *, robot_model: str, target: dict[str, list[float]], reference: str = 'base') Coroutine[Any, Any, dict[str, list[float]]]#
Smooth L heartbeat — 손(및 T5) Cartesian 목표를 따라 연속 이동한다.
버튼을 누르는 동안 약 20Hz 로 부른다. 세션이 없으면 시작하고(스트림 1개, smooth_status “start”), 호출마다 CartesianCommand 1개를 보낸다 (minimum_time 0.15s, hold 0.5s). 250ms 동안 heartbeat 가 없으면 스스로 정지한다. target 의 키가 곧 명령에 넣는 부위. 1회 변화량은 위치 1.5mm·회전 0.35° 이하 (이전 목표 기준, 처음 오는 부위는 현재 FK 기준) — 넘으면 정지 + 예외. 세션 중 L/J·reference 변경도 정지 + 예외.
- Parameters:
robot_model – 연결된 model.
target – 컴포넌트(“torso”/”right_arm”/”left_arm”) → [x_mm, y_mm, z_mm, rx_deg, ry_deg, rz_deg]. 비어 있으면 안 된다.
reference – “base” 또는 “link_torso_5”.
- Returns:
받아들인 목표 (target 과 같음).
- Raises:
ValueError – reference·키·길이 오류, 유한수 아님, 빈 target.
RBY1ConnectionError – 미연결. RBY1Error 변화량 초과·로봇 busy·컨트롤러 거부·gRPC 실패.
- smoothjog_stop(self, *, robot_model: str, reason: str = 'user') Coroutine[Any, Any, bool]#
Smooth jog 정지 (L/J 공용). 스트림 취소 → cancel_control → Idle 대기(최대 1.5s) → smooth_status “stop”.
- Parameters:
robot_model – 연결된 model.
reason – 로그용 정지 사유.
- Returns:
정지한 세션이 있었으면 True.
- start_log_stream(self, *, robot_model: str, callback: Callable[[list], Any], rate: float) Coroutine[Any, Any, None]#
로봇 로그 스트림을 시작한다 (유실 최소화 대기열).
콜백은 스트림 전용 스레드에서 받은 순서대로 한 번에 하나씩 불린다. 콜백이 느려도 gRPC 수신은 막히지 않고 1024 batch 까지 쌓이며, 넘치면 가장 오래된 것부터 버린다 (log_stream_stats 의 dropped). 콜백이 awaitable(코루틴 등)을 돌려주면 등록 시점의 실행 중 이벤트 루프에서 실행하고 끝날 때까지 다음 batch 를 넘기지 않는다. 코루틴 함수를 이벤트 루프 밖에서 등록하면 RuntimeError. 콜백 예외는 stderr 로 출력하고 스트림은 계속된다. 같은 model 로 다시 부르면 이전 스트림을 멈추고 새로 시작한다. disconnect_robot 은 스트림을 멈춘다. 콜백 안에서 stop_log_stream 을 불러도 된다. 끊김 복구는 start_state_update 와 같다 (max(10/rate, 1)초 동안 수신이 없으면 다시 구독, log_stream_stats 의 resubscribes).
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
callback – callback(logs) — logs 는 rby1.Log 목록 (공식 스트림 콜백 1회분).
rate – 요청 수신 주기(Hz).
- Raises:
RBY1Error – model 불일치. RBY1ConnectionError 미연결.
- start_state_update(self, *, robot_model: str, callback: Callable[..., Any], rate: float) Coroutine[Any, Any, None]#
로봇 상태 스트림을 시작한다 (latest-only).
공식 start_state_update 와 같이 콜백 인자는 1개 또는 2개다: callback(state) 또는 callback(state, control_manager_state). 개수는 등록 때 한 번 inspect.signature(callback).parameters 로 센다 (bound method 의 self, partial 로 묶인 인자는 빠진다). 그 밖의 개수면 TypeError. 두 값은 같은 스트림 샘플 (GetRobotStateStream 응답 하나)에서 온다 — 1개 형도 같은 RPC 이므로 비용 차이는 없다.
콜백은 스트림 전용 스레드에서 한 번에 하나씩 불린다. 콜백이 느리면 그 사이 도착한 상태는 최신 것만 남고 나머지는 버린다 (gRPC 수신은 막히지 않는다). 콜백이 awaitable(코루틴 등)을 돌려주면 등록 시점의 실행 중 이벤트 루프에서 실행하고 끝날 때까지 다음 상태를 넘기지 않는다 (코루틴도 latest-only). 코루틴 함수를 이벤트 루프 밖에서 등록하면 RuntimeError, 그 밖의 콜백이 루프 없이 awaitable 을 돌려주면 에러 로그 후 그 상태를 버린다. 콜백 예외는 stderr 로 출력하고 스트림은 계속된다. 같은 model 로 다시 부르면 이전 스트림을 멈추고 새로 시작한다. 콜백 안에서 stop_state_update 를 불러도 된다.
끊김 복구: 공식 SDK 는 서버가 스트림을 끝내도 알리지 않으므로, max(10/rate, 1)초 동안 상태가 안 오면 다시 구독한다 (stderr 에 끊김·복구 한 줄씩, 재시도 간격은 두 배씩 4배까지, state_update_stats 의 resubscribes). gRPC 연결은 공식 채널이 스스로 다시 맺으므로 로봇이 돌아오면 connect_robot 없이 스트림이 이어진다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
callback – callback(state) 또는 callback(state, control_manager_state) — state 는 rby1.RobotState_A / _M / _UB, control_manager_state 는 rby1.ControlManagerState (공식 타입).
rate – 요청 수신 주기(Hz).
- Raises:
RBY1Error – model 불일치. RBY1ConnectionError 미연결. TypeError 콜백 인자 개수가 1·2 가 아님.
- static state_update_stats(*, robot_model: str) dict[str, int]#
상태 스트림 통계 (멈춘 뒤에도 마지막 값).
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”).
- Returns:
수신 수, “delivered”: 콜백 호출 수, “dropped”: 콜백 전에 새 상태로 덮여 버린 수, “resubscribes”: 끊긴 스트림을 다시 구독한 수}.
- Return type:
{“received”
- stop(self, *, robot_model: str, priority: int = 1, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, dict[str, Any]]#
모션 정지 — StopCommand(whole body) 를 보내고 끝날 때까지 기다린다.
finish_code 가 Ok 가 아니면 예외 대신 그대로 반환하고, muscat/{robot_model}/message 로 ERROR 알림 (
RBY1 Move Error: <code>, 사유는 로봇 마지막 로그)을 보낸다. 정지 명령이라 await 가 취소돼도 명령은 취소하지 않는다 (끝날 때까지 기다리고 done() 만 막는다).- Parameters:
robot_model – 연결된 model (“a” / “m” / “ub”).
priority – 명령 우선순위. 진행 중인 명령보다 확실히 우선하려면 높게.
flow_manager_args – Optional PyFM step context. 명령이 끝나면 done() 을 호출한다.
- Returns:
bool, “finish_code”: str}.
- Return type:
{“finished”
- Raises:
RBY1ConnectionError – 미연결. RBY1Error model 불일치·gRPC 실패.
- stop_log_stream(self, *, robot_model: str) Coroutine[Any, Any, bool]#
로그 스트림을 멈춘다. 진행 중인 동기 콜백이 끝날 때까지 기다리고 (콜백 안에서 부르면 기다리지 않는다), 진행 중인 코루틴 콜백은 취소한다. 아직 콜백에 넘기지 못한 로그는 버린다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”).
- Returns:
동작 중이던 스트림이 있었으면 True.
- stop_state_update(self, *, robot_model: str) Coroutine[Any, Any, bool]#
상태 스트림을 멈춘다. 진행 중인 동기 콜백이 끝날 때까지 기다리고 (콜백 안에서 부르면 기다리지 않는다), 진행 중인 코루틴 콜백은 취소한다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”).
- Returns:
동작 중이던 스트림이 있었으면 True.
- property sync#
동기 호출 뷰 (PyFM step/스크립트용).
- sync_time(self, *, robot_model: str, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
로봇과 시간 동기화를 한 번 한다 (Ping 왕복으로 로봇 시계 오프셋 추정 — 이후 RobotState/Log 의 timestamp 가 로컬 시계 기준으로 보정된다).
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
성공하면 True.
- Raises:
RBY1Error – 로봇 응답에 시각이 없음 또는 호출 실패. RBY1ConnectionError 미연결.
- wait_for_control_ready(self, *, robot_model: str, timeout_ms: int, flow_manager_args: rb_schemas.sdk.FlowManagerArgs | None = None) Coroutine[Any, Any, bool]#
로봇이 제어 명령을 받을 준비가 될 때까지 기다린다. servo_on 뒤, 명령 전에 부른다.
- Parameters:
robot_model – 로봇 model (“a” / “m” / “ub”). 연결된 로봇과 다르면 실패.
timeout_ms – 타임아웃 [ms].
flow_manager_args – Optional PyFM step context. 성공하면 done() 을 호출한다.
- Returns:
준비됐으면 True, 타임아웃이면 False (예외 아님).
- Raises:
RBY1Error – 호출 실패. RBY1ConnectionError 미연결.