This repository contains the open-source code for eye and mouth animations of the XGO2 robot. The code includes algorithms for controlling eye movements and mouth animations based on spoken words, enhancing the robot's ability to communicate and interact.
- Eye blinking and movement animations
- Mouth movement synchronized with spoken words
- Customizable parameters for scaling and timing
- Easy integration with XGO robot components
To use this code with your XGO2 robot, follow these steps:
git clone https://github.com/Keyvanhardani/xgo2-robot-eye-and-mouth.git
cd xgo2-robot-eye-and-mouth
Ensure you have all required dependencies installed. (List any necessary dependencies here.)
To start the eye and mouth animations, use the following functions:
from eye_mouth_controller import start_speaking, stop_speaking
# To start the animation
start_speaking("Your text here")
# To stop the animation
stop_speaking()
OR
thread = start_speaking("Your text here")
stop_speaking(thread)
You can customize the eye and mouth animations by modifying the scale factors and image paths in the eye_mouth_controller.py
file.
Contributions to this project are welcome. Please fork the repository and submit a pull request with your proposed changes.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the XGO2 Robot team for their support and collaboration.
- Special thanks to all contributors and the open-source community.
Created by Keyvan Hardani 10.2023