Python SDK — connecting from a remote PC
from rainbow.rb_sdk import RBManipulateSDK from rainbow.rb_sdk.rb_sdk_cpp import ConnectOptions sdk = RBManipulateSDK() o = ConnectOptions() o.token = "rbst_xxxx" # SDK token issued in Muscat o.host = "192.168.100.18" sdk.connect(o) # registers the peer + heartbeat # ... control / subscribe ... await sdk.disconnect()
InfoFor use outside a plugin (Linux · Windows scripts, etc.):
pip install rainbow-rb-sdk (Python 3.12, no macOS wheel). The robot connects back to this PC, so open your firewall. connect() reopens the session, so register subscriptions and handlers after connect.