-
Notifications
You must be signed in to change notification settings - Fork 1
Usage
Yu-Wei Liu edited this page Dec 25, 2021
·
1 revision
from interacter import Server
import time
robot = Server(50051, 'zh')
while not self.robot.is_robot_connected:
time.sleep(1)
print('robot connected: ' + self.robot.robot_type + ':' + self.robot.locale)
api_returns = robot.api_methods(args_1, args_2)
Robot APIs | |
---|---|
Methods | Description |
say( String speech, Boolean listen ) |
|
videoRecord( String value ) |
|
videoStream( String value ) |
Use this method to enable/disable video streaming from the robot Arguments: value: "start": command the robot to start streaming. "stop": command the robot to stop streaming. Returns: On successful start, returns the port where the video is being streamed. Notes: Video streaming requires a viewfinder to be shown on the robots' screen. This cannot be disabled. If the connection to the server is lost (i.e. when the server-side program is interrupted), the stream will stop automatically. There are two services that use the camera: videoStream and videoRecord. Only one can be active at a time. If you attempt to call any of these while any another is active, an error message will be returned. |
( Add New Function Here ) | ( Add New Function's Description Here) |