This project is an interface to connect with and control a Marty robot. The application consists of three steps:
- Scan for Marty
- Verify your Marty
- Marty Commands
The project is divided into a few key parts:
This class is responsible for managing the connection to a Marty robot. It is also a bridge between the RICJS library and the rest of the application. It includes methods to:
- Connect to a robot
- Verify the robot
- Disconnect from the robot
- Send messages to the robot
- Stream audio to the robot
These are the main steps user goes through to connect with and control a Marty:
-
Step1Scan
: This component initiates a scan for Marty robots using Web Bluetooth API and establishes a connection with the selected device. -
Step2Verification
: This component sends random LED color signals to the Marty robot and asks the user to verify if the colors match. This ensures the user is connecting to the correct Marty robot in case there are multiple Martys in the room. -
Step3Commands
: This is where the user would send commands to the robot.
This is the main component of the application, which manages the current step and transitions between steps.
- Clone the repository:
git clone https://github.com/robotical/codiny-webble-example.git
- Navigate to the project directory:
cd codiny-webble-example
- Install the dependencies:
npm install
- Start the application:
npm start