EVA is a social ๐ฃ and affective โค๏ธ robot aimed at assisting older adults in conducting Instrumental Activities of Daily Living (IADLs). It is not only a passive assistant, but an active one: proactive behaviour is incorporated in the robot. It can start conversations and show concern about the user, making the interaction more natural and affective.
This repo contains the brain ๐ง structure of the robot, the proactive and interaction behavior themselves.
With EVA, you can have conversations in the more natural way. It is activated by a novel method called wakeface, in which the robot activates/listens the user by looking at it. Also, it is able to start conversations by using proactive questions.
Highlighted proactive questions โจ how are you, who are you
Other hightlighted (cool) services reading incoming telegram messages, sending telegram messages
What are you waiting for to meet it? Construct your own EVA today! ๐
EVA hardware structure is based on the existing EVA robotic platform. This EVA affective and proactive version is constructed using the following elements:
- ๐ฅ๏ธ Screen Waveshare 5.5" HDMI AMOLED for ๐ displaying
- ๐ท Intelยฎ RealSenseโข Depth Camera D435i
- ๐ค๐ก Matrix Voice
- ๐ Tempest M10 RGB Hero 2.0 Gaming Speakers
- Raspberry Pi 4 Model B
- Plastic structure printed using 3D printer
It is not mantadory to have exactly the same components, as long as they have the same functionalities. If you change any of them, make sure you have the correct drivers. In particular, if camera is changed, camera frames capturing code must be rewritten to use the suitable library for your camera management (it will probably not be pyrealsense2).
Use the package manager pip to install all the pre-requisites.
pip3 install -r requirements.txt
Ensure you have IBM Cloud and Google Cloud accounts.
It is necessary to have apikeys ๐ for the following services:
- Google Speech to Text
- Google Text to Speech
- Google Translator
- IBM Natural Language Understanding
- IBM Watson Assistant
Both files (Google credentials and IBM credentials) must be stored in a credentials/
directory, located outside the main project directory:
$ any_directory
.
โโโ credentials
โ โโโ google_credentials.json
โ โโโ assistant_credentials.json
โ โโโ ibm_credentials.env
โโโ Eva-Assistant-Python/
In this case, by-default environment variables provided by Google and IBM (GOOGLE_APPLICATION_CREDENTIALS and IBM_CREDENTIALS_FILE) are used for automatic services apikey authentication (easier!). Also, a WATSON_ASSISTANT_CREDENTIALS variable containing assistant_credentials.json path is used for obtaining the assistant id.
WARNING
Follow these steps:
- Get your own api_id and api_hash from Telegram (click here and follow the instructions), under API Development.
- Store them in a telegram_credentials.json file. This file must be located in
credentials/
directory, and should be like this:
{
"api_id" : 12345,
"api_hash" : "0123456789abcdef0123456789abcdef"
}
- Create your telegram.session file, located also in
credentials/
directory. Using Telethon library is very easy. - Create two environment variables TELEGRAM_CREDENTIALS and TELEGRAM_SESSION which contain their corresponding paths.
- Enjoy the service!
For executing EVA, you only have to run from root repo directory:
python3 main.py
โก๏ธNote: proactive_phrases.json contains phrases totally in spanish, so if you want EVA to speak in a different language, teach it your language by changing this file and developing the IBM Watson Assistant dialog tree in your language. It will be happy to learn it ๐
And that's how you construct your own affective robot! ๐คโค๏ธ๐ฉ๐ป