def run(): args = util.parse_command_args() flask_helpers.run_flask(app, host_ip="0.0.0.0", host_port=5000, open_page=False)
def run(): args = util.parse_command_args() with anki_vector.AsyncRobot(args.serial, enable_camera_feed=True) as robot: flask_app.remote_control_vector = RemoteControlVector(robot) robot.behavior.drive_off_charger() flask_helpers.run_flask(flask_app)
def run(): args = util.parse_command_args() print( "Server running on http://localhost:%d - open this page in your favourite webbrowser!" % PORT) flask_helpers.run_flask(app, host_ip="0.0.0.0", host_port=PORT, open_page=False)
def run(): args = util.parse_command_args() #when audio is read, add this below - ", enable_audio_feed=True" with anki_vector.AsyncRobot(args.serial, enable_camera_feed=True) as robot: robot.vision.enable_display_camera_feed_on_face() robot.vision.enable_face_detection(detect_faces=True, estimate_expression=True) flask_app.remote_control_vector = RemoteControlVector(robot) #robot.behavior.drive_off_charger() flask_helpers.run_flask(flask_app)
def run(): args = util.parse_command_args() with anki_vector.AsyncRobot(args.serial, enable_face_detection=True, enable_custom_object_detection=True) as robot: flask_app.remote_control_vector = RemoteControlVector(robot) flask_app.display_debug_annotations = DebugAnnotations.ENABLED_ALL.value robot.camera.init_camera_feed() robot.behavior.drive_off_charger() robot.camera.image_annotator.add_annotator('robotState', RobotStateDisplay) flask_helpers.run_flask(flask_app)
def run(): # args = util.parse_command_args() done = threading.Event() robot = Nodeps(enable_face_detection=True, enable_custom_object_detection=True) robot.connect(timeout=30) flask_app.remote_control_vector = RemoteControlVector(robot) flask_app.display_debug_annotations = DebugAnnotations.ENABLED_ALL.value robot.camera.init_camera_feed() # robot.behavior.drive_off_charger() # started_control(robot) robot.camera.image_annotator.add_annotator('robotState', RobotStateDisplay) audio_main(robot) flask_helpers.run_flask(flask_app, enable_flask_logging=False, open_page=False, host_ip="0.0.0.0")