Sample Code

Open a Sample Project

  • Open Xcode
  • Select the "Open another project" option on the main menu
  • Navigate to the "Samples" directory that was unzipped when you downloaded the Robot SDK
  • Select a sample folder to open
  • Double click on the "xcodeproj" file

Build the project

  • Change the device target from iOS Simulator to iOS Device (or the name of the connected iOS device)
  • Press the play button or CMD+B

    Note: Robot applications will not work in the emulator due to the dependency on Bluetooth

Open a Sample Project

  • Open Android Studio
  • Select the "Open an existing Android Studio project" option from the main menu
  • Navigate to the "Samples" directory that was unzipped when you downloaded the Robot SDK
  • Select the folder containing the sample project you want to open and click "Choose"

Build the project

  • Ensure that the required jar files from the SDK are in "project/libs/"
  • Click on the "run" button or CTRL+R (Mac) or CTRL+F10 (Windows)

    Note: Robot applications will not work in the emulator due to the dependency on Bluetooth