This repository contains code samples for working with Misty's REST and JavaScript APIs.
You can use the green Clone or download button to copy these files onto your local desktop. This ensures you have the Tools directory in the same folder as the code samples, which is required for some of the samples to run.
When working with the JavaScript code samples in this repository, you can install the skill files on your robot by uploading them to Misty via the Skill Runner web tool, or by using Misty's Visual Studio Code extension for JavaScript skill development. Alternately, refer to these code samples (or copy and paste them into your own skills) when working on similar functionality in your own skill development.
When working with the REST API code samples, you can run many of them by entering your own robot's IP address in the required field when you open the page in your web browser. Other samples require you to manually type your robot's IP address into the .html
code. For a better view into the commands being sent to your robot, you can open the JavaScript console in the browser window where the code is running.
- JavaScript SDK Code Samples - A collection of code samples for developing skills with Misty's JavaScript SDK.
- Arduino Getting Started - A few samples to get you quickly up-and-running with Misty's Arduino-compatible backpack.
- Explore - Misty programmatically determines where to explore and expand her map.
- Find Face - Do Something - Misty plays an audio clip when she detects a face.
- MistyReads_AzureTutorial - Sample code for working with Microsoft Azure Functions, Microsoft Cognitive Services, and teaching Misty to read handwritten text extracted from an image.
- MistyReads_Python - Sample code for combining Misty's REST endpoints, Python wrapper, and Microsoft Cognitive Service's Vision and Speech API's to have Misty read handwriting.
- RoamAndLook - Sample JavaScript skill. On seeing a known face, Misty greets the face and smiles. On seeing an unknown face, Misty takes a picture and saves it. Time of Flight - Sample JavaScript code for retrieving information from the time of flight sensors via a WebSocket connection.